I am using SoftEther VPN client to connect to a remote machine. In order to ssh into the remote machine, I first have to take the following steps:
cd ~/vpnclient
sudo ./vpnclient start
./vpncmd
2 (asked to pick an option)
Enter "" (with no input)
accountconnect
<my_name_1>
exit
sudo dhclient <my_name_2>
After that, I am able to ssh. But I have to do that each time I restart.
I'm sure there must be a way that I can automate all this but I'm not sure where to start. Could I write a shell script to do this, even though it runs a program and then types things within the program? Or should I be doing this with Python?
Any help would be great.