Intro: Hi, I've been trying to get a VPN and ssh command to work together. And I've been successful to the point where I can get on the server with
ssh user@hostname. But when the VPN is active, all of my internet passes trough that VPN.
Target: I'd like to use my own internet connection for everything other than that SSH connection.
Option breaks SSH > VPN:
I've noticed that there is an option "Use this connection only for resources on its network" in the "Editing VPN" – "IPv4 settings" tab – "Routes…" button.
It seemed like the solution, but if I enable that, I can't connect anymore with the "ssh user@hostname" command, it hangs till it times out.
Thoughts: My thoughts so far are that it does not work because the hostname(from ssh username@hostname) and the gateway(from the VPN settings) are different. But I don't know enough about ssh or VPN to know that.
Ideas? Is there like an option in ssh that I am overlooking? I tried
ssh -b gatewayFromVPN username@hostname but this didn't seem to work (and I doubt it should). Or is there an option in the VPN settings or something that could solve this?
Thanks in advance.
- browse etc > internet connection
- (simultaneously with)
- SSH > VPN connection
"Use this connection only for resources on its network" breaks SSH > VPN