![无法使用保存的密码“auth-users-pass”连接到 openvpn](https://linux22.com/image/725529/%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%E4%BF%9D%E5%AD%98%E7%9A%84%E5%AF%86%E7%A0%81%E2%80%9Cauth-users-pass%E2%80%9D%E8%BF%9E%E6%8E%A5%E5%88%B0%20openvpn.png)
我尝试将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:
`