Re: Rookie needs help: Two shell sessions in one



Use port forwarding on the first connection. For example...

ssh -D 1088 -p 443 -L 8888:ipofremote:porttoforwardto username@remoteip

After that, making a connection to 127.0.0.1:8888 goes to the remote ip
and port specified with the -L.


On Wed, 2008-01-30 at 07:25 -0800, daa imissdaa wrote:
Hi everyone, I am new here and I am very new to be
working with SSH

Problem:
I need to establish a session within a session.

The first connection goes to a remote box. The second
connection goes to that same box but within the
previously established shell and from there to another
machine in another location, I am tunneling SOCKS5
programs through the second session.


How I did it before:
Until now, I have used Putty twice (on windows XP) to
do that but since I switched over to Linux Ubuntu, I
am using the pure command line.


So far, I have been able to establish the first
session by doing:
ssh -D 1088 -p 443 username@remoteboxIP

Previously on XP, I would now open the second putty
session configured as follows:
Under Session: IP_of_second_remote_box |
Port 443 | SSH
Under: Connection--Proxy: SOCKS 5 | Proxy Hostname:
127.0.0.1 | Port 8888

Can you point out what the equivalent command line
input would have to be ?

Thanks for the help :))

PS: sorry if this question is too trivial




____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




Relevant Pages