Re: OpenSSH port forwarding

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Date: Thursday, June 26, 2008 - 2:03 pm

raven writes:

> Hi guys, i have this net topology:

I suppose you want to ssh to your localmachine when you are nowhere.
For that, you can ssh to your externalserver.com, and then ssh to your
localmachine.local.

On the local machine :

localmachine$ ssh -R5022:localhost:22 externalserver.com

You can automaticate this using some scripts, see the man of ssh and
ssh-keygen.

Now, externalserver listen on localhost:5022, and forward that to
localmachine:22.

On the externalserver, you can now connect to your localmachine :

externalserver$ ssh -p 5022 localhost
localmachine$

--
Guillaume Pinot http://www.irccyn.ec-nantes.fr/~pinot/

``Computers are good at following instructions, but not at reading your
mind.'' -- Donald E. Knuth, the TeXbook

() ASCII ribbon campaign -- Against HTML e-mail
/\ http://www.asciiribbon.org -- Against proprietary attachments

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: OpenSSH port forwarding, TeXitoi, (Thu Jun 26, 2:03 pm)
Re: OpenSSH port forwarding, raven, (Thu Jun 26, 6:03 pm)