Hi folks,
I'm on a fresh install of CentOS 7 and take my config that works on Ubuntu on the same box. Instead of getting a prompt for username and password for the VPN I get a backgrounded task that spits this out :
[amckay@centos-gig ~]$ sudo openvpn --config /home/amckay/data/vpn.ovpn --daemon
Broadcast message from root@centos-gig (Sat 2015-07-25 22:59:13 EDT):
Password entry required for 'Enter Auth Username:' (PID 23461). Please enter password with the systemd-tty-ask-password-agent tool!
[amckay@centos-gig ~]$
I actually started having the same problem at work when trying to connect to our management network. Different config file. CentOS 7 though. Same config file works great on Ubuntu.
Been googling it but not much luck.
thanks, -Alan
So it seems that now when I use --daemon it backgrounds BEFORE prompting for my password instead of after
So I am good as long as I don't do that.
Why this all of a sudden?
On 07/25/2015 08:05 PM, Alan McKay wrote:
I'm on a fresh install of CentOS 7 and take my config that works on Ubuntu on the same box. Instead of getting a prompt for username and password for the VPN I get a backgrounded task that spits this out : ... Password entry required for 'Enter Auth Username:' (PID 23461). Please enter password with the systemd-tty-ask-password-agent tool!
So, run "systemd-tty-ask-password-agent". You should be prompted for the password, there.
OpenVPN in CentOS was built with --enable-systemd, which uses the agent so that connections can be started as a service and still use password authentication.
Am 27.07.2015 um 19:41 schrieb Gordon Messmer gordon.messmer@gmail.com:
On 07/25/2015 08:05 PM, Alan McKay wrote:
I'm on a fresh install of CentOS 7 and take my config that works on Ubuntu on the same box. Instead of getting a prompt for username and password for the VPN I get a backgrounded task that spits this out : ... Password entry required for 'Enter Auth Username:' (PID 23461). Please enter password with the systemd-tty-ask-password-agent tool!
So, run "systemd-tty-ask-password-agent". You should be prompted for the password, there.
OpenVPN in CentOS was built with --enable-systemd, which uses the agent so that connections can be started as a service and still use password authentication.
maybe related: https://bugzilla.redhat.com/show_bug.cgi?id=1229504#c18
-- LF