I have a remote Linux server with no GUI which I connect to using SSH or putty. I want to install OpenVPN CLI on it so that programs have secure access to internet.
I succeeded in configuring the VPN in the remote server; however, I got locked out and I could not connect to it anymore.
What are my options to have VPN running on this machine, and I still be able to SSH to it?
note: I only have 3 java programs running on this machine that access internet, and it would be enough for me if only these 3 programs connect to internet via VPN and the rest of incoming/outgoing connections are non-VPN.