I used the following command to create a tunnel from my system to server1 and from server1 to server2 to have a tunnel from my system to server2
ssh -t -t -L4450:localhost:5590 user1@server1 'ssh -L 5590:localhost:2000 user@server2'
But I get the following messages when I try to browse the web in my browser:
channel 3: open failed: connect failed: Connection refused channel 4: open failed: connect failed: Connection refused
Is there anything wrong with the command?
My goal is to access internet via server2(SOCKS Proxy). Because of some limits, I have to use a interface server(server1) to create a tunnel to server2.