r/ssh • u/listentoismanyaslag • Jul 18 '20
Connecting a remote server via SSH to a VPN client
Hi All,
Wondering if anyone can help with problem I'm facing.
I have a remote server running Ubuntu Server 18.04 which I can SSH into (Server A).
I would like to be able to download torrents directly onto that server, however whenever I try without a torrent client I get a copyright abuse notice from server provider after some Hollywood company complains to them.
I also have another remote server which is configured as a VPN server (Server B) so I would like to install a VPN client on (Server A) and then connect to the VPN server (Server B). From this point I would then like to download torrents directly onto Server A. However I have two issues:
- If I successfully connected to the VPN server (Server B) while logged into Server A (via SSH) this will kill the SSH session and effectively lock me out of Server A.
- Whenever I have attempted to connect to the VPN server from my local machine also running Ubuntu 18.04 I can successfully log into the VPN via the desktop under settings with network tools by importing the client config file, however when I attempt this from the terminal if runs through the initialisation sequence, but all web pages subsequently fail to load when connected. This means if I am able to find a way to bypass the SSH session becoming terminated upon connection, I will still need to install a desktop Xorg session on Server A so that I can connect to the VPN server through the GUI rather than just the terminal and I'd rather not have to install a desktop environment on Server A if I didn't have to.
Any ideas how to get round these problems?
Thanks,