What tunnels do you want to open? Between which machine and which machine, and what data would pass through? What is the ultimate goal here?
Quote:
Originally Posted by yanive
i can SSH to server1 and then SSH to server2 but i want to do it via tunneling.
|
Why? The purpose of an ssh tunnel is generally so you can pass
other,
non-ssh data through an encrypted tunnel that wouldn't otherwise be encrypted, or wouldn't otherwise have access on the necessary port. Maybe if I understood how you intend to use it, I could help with how it needs to be set up.
Are you perhaps asking for the putty equivalent of:
Code:
ssh -f -NL 9999:server2:22 user@server1
Which would open a tunnel between your laptop and server1, with an exit point at port 22 on server2? So that future connections from your laptop could simply access localhost:9999 and they would end up at the sshd server on server2? Or do you want to open a tunnel between server1 and server2 so that if you ssh to server1 on a special port from any computer you'll end up on server2 instead?