Alan McKay
2015-Jul-26 03:05 UTC
[CentOS] Suddenly OpenVPN not working - backgrounds prompt for username / password
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 at centos-gig ~]$ sudo openvpn --config /home/amckay/data/vpn.ovpn --daemon Broadcast message from root at 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 at 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 -- ?Don't eat anything you've ever seen advertised on TV? - Michael Pollan, author of "In Defense of Food"
Alan McKay
2015-Jul-26 13:05 UTC
[CentOS] Suddenly OpenVPN not working - backgrounds prompt for username / password
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?
Gordon Messmer
2015-Jul-27 17:41 UTC
[CentOS] Suddenly OpenVPN not working - backgrounds prompt for username / password
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.
Leon Fauster
2015-Aug-10 21:45 UTC
[CentOS] Suddenly OpenVPN not working - backgrounds prompt for username / password
Am 27.07.2015 um 19:41 schrieb Gordon Messmer <gordon.messmer at 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
Apparently Analagous Threads
- Suddenly OpenVPN not working - backgrounds prompt for username / password
- Kerio Mail Server - anyone?
- [PATCH] i.d.s/openvpn: support 'remote-cert-tls (server|client)'
- [PATCH] Re-enabled :port portion of "UDPv4 link" openvpn rule
- [PATCH] Added "Re-using pre-shared static key" openvpn rule