Connect to VPN without typing my password
I want network-manager to remember my VPN password, so that I never need to type it ever again.
I already successfully achieved this behavior, but it was by circumventing network-manager with
modified files as described below. I have tried many different solutions suggested on askubuntu and
other sites I found by Googling. No solution worked, except for this one.
Unfortunately, these file modifications no longer work for some unknown reason, so I'm
back to typing the VPN password again.
BEGIN /etc/network/
auto lo
iface lo inet loopback
# I added the following 4 lines:
auto eth0
iface eth0 inet dhcp
name Wired-LAN
post-up /etc/network/
END /etc/network/
BEGIN /etc/network/
#!/usr/bin/env bash
opt=(
-U MyLaptopUser
-u MyVPNUser
--background
--authgroup
--no-dtls
--script=
--pid-
--passwd-
vpn.
)
echo "my vpn password" | sudo openconnect ${opt[*]}
END /etc/network/
I'm using:
Ubuntu 12.04
network-manager 0.9.4.0-
network-
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Kamil Slowikowski for more information if necessary.