How to create SSH chain connection over Tor?


6 months ago
I have two remote Ubuntu servers - VPS1 and VPS2. On VPS1 i have Tor daemon installed. I am connecting to VPS1 through ssh from my local machine and from VPS1 i am connecting to VPS2 through ssh over Tor. I followed this guide https://www.howtoforge.com/anonymous-ssh-sessions-with-tor and setup VPS1 to use all connection over Tor by editing the ssh_config file and adding this lines:

Host *
CheckHostIP no
Compression yes
Protocol 2
ProxyCommand connect -4 -S localhost:9050 $(tor-resolve %h localhost:9050) %p


Now, i am using two commands to connect to the second vps, i first connect to the first and from the first i connect to the second. My question is, is it possible to create something like ssh chain so i will be able to use one command that will connect me to the second vps, going through the first vps?

Reply

You are not logged in. Login or register to reply on this thread.