Portál AbcLinuxu, 10. května 2025 13:29
--auth-user-pass [up] Authenticate with server using username/password. up is a file containing username/password on 2 lines (Note: OpenVPN will only read passwords from a file if it has been built with the --enable-password-save configure option, or on Windows by defining ENABLE_PASSWORD_SAVE in config-win32.h). If up is omitted, username/password will be prompted from the console. The server configuration must specify an --auth-user-pass-verify script to verify the username/password provided by the client.
#!/usr/bin/expect spawn sudo openvpn /etc/openvpn/client.conf expect ".* Username:" send "login\r" expect ".* Password:" send "heslo\r"kdyz ho spustim, spusti se openvpn, vlozi se uzivatelske jmeno, heslo se neopisuje, takze nevim zda se vlozi a po chvili me to hodi zpet do konzole. Jakoby to heslo nebylo "odentrovano". Nevite prosim kde muze byt chyba?
zkusil bych parametr:
--auth-user-pass [up] : Authenticate with server using username/password. up is a file containing username/password on 2 lines, or omit to prompt from console.
openvpn --auth-user-pass /cesta/k/souboruSuzivatelemAjmenem
format souboru:
uzivatel
heslo
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.