P
P
Pavel S2015-12-05 13:59:04
VPN
Pavel S, 2015-12-05 13:59:04

In Ubntu 14.04, how can I connect to a vpn connection created through the graphical shell using a command in a .sh script?

This "pon vpn" naturally produces:
The file /etc/ppp/peers/vpn does not exist. Please create it or use
a command line argument to use another file in the /etc/ppp/peers/ directory.
What command to enter in the script so that the button click will work (see figure)
616694b4aaca4fea99975f820af27e07.JPG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2015-12-05
@SymbiosisX

nmcli con up id VPN
(VPN == connection name as is, it is better to use names without spaces).
You need to run from the user under which this connection was created (if not shared). For those who do not understand the phrase - NOT through sudo.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question