无法使用保存的密码“auth-users-pass”连接到 openvpn

无法使用保存的密码“auth-users-pass”连接到 openvpn

我尝试将openvpn客户端的用户名和密码保存在“ .secret.txt”中,但在尝试连接时收到错误,或者系统要求输入密码,而不是从“ .secret.txt”中读取密码

这是我的配置文件:

resolv-retry infinite
nobind
persist-key
persist-tun
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server_4EBX2EpXPZasiTv1 name
cipher AES-256-CBC
auth SHA256
comp-lzo
verb 3
<ca>
auth-user-pass //root/.secret.txt

连接时,我收到错误:

警告:文件‘//root//secret.txt’可供群组或其他人访问

答案1

WARNING: file '//root//secret.txt' is group or others accessible

我能够解决chmod 600

但是,连接仍然提示输入密码:

Wed Aug 8 07:44:22 2018 OpenVPN 2.4.3 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 3 2017 Wed Aug 8 07:44:22 2018 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08 Enter Private Key Password: `

相关内容