Hot answers tagged


You're on the right track with tty, and the -t option gives you just that. However, unless you are actually aiming to get a tty session for interacting, leave this option off of the last ssh command in your chain. In your case you just need it on the first connection: ssh -L 5901:localhost:6000 host1 -t ssh -L 6000:localhost:5901 -N host2 Now when you use ...


This line: tcp 0 1 SYN_SENT 2366/ssh tells us, that the ssh-connection from the work pc to the home-pc has not been completed. So either a) the port forwarding from the router to the home-pc does not work, or b) the ssh-d on the home pc is not listening to the (correct) address


In summary, yes, ssh tunnels send all data across the port ssh is using (which is usually port 22). However, it only sends traffic specifically sent over the port you specify (5900 in your example above). The classic example of this is tunnelling web traffic, so that a local web browser uses the tunnel to reach destination web sites. In this instance, the ...

Only top voted, non community-wiki answers of a minimum length are eligible