ssh tunneling - help required

Associate
Joined
21 Apr 2008
Posts
1,087
Location
By the river
I have a ssh connection on a windows box running through putty and all is well. However I'm trying to copy this connection's settings onto to a linux machine, and i'm having difficulties using the openssh config file.

Problem:
In the windows putty GUI i have two SSH tunnels which are both configured as below (not the real port numbers or server name :p):

Source Port = "1234"
Destination = "myremoteboxname:1234"

How do i transfer that into my ~/.ssh/config user file?
I so far have the hostname and port i need to connect on. this works fine.
What do i need to add to generate the tunnels?
I cant make head or tail of the manual syntax, and googling hasen't helped either!

could someone please shed some light on the problem

TIA
 
what are you trying to do ? chain ?

if you just want to essentially connect from a nix box to another and setup a tunnel then the command would be:

ssh -l login -p password -D 1234 myremoteboxname -p 22

http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&sektion=1

-p 22 you do not need but just put it there incase you are running sshd on a non standard port, which you should be. If you do change the port make sure it is within the root only range of ports which is under port 1024.
 
Last edited:
Back
Top Bottom