Skip to content
Advertisement

Connect to a VPN Connection in Ubuntu in bash

How can I connect to a VPN Connection when I can use only bash (terminal)?

I create a connection but I want to connect or disconnect using remote ssh connection

Advertisement

Answer

you can use nmcli to do that. this program is use for network management.

nmcli con up id <name_of_connection>

you need to save the password of that connection before you use this command. For more information, try man nmcli

any help on how to create VPN_CONNECTION in bash and how to manage them will appreciate

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement