Re: Initiate SSH session from other side?
- From: comphelp@xxxxxxxxx (Todd H.)
- Date: 14 Aug 2006 09:37:16 -0500
"dspfun" <dspfun@xxxxxxxxxxx> writes:
Is it possible to somehow trigger an SSH session from inside a network,
so that I can use an SSH session from outside the network into the
network? For example by having a program (crontab) or something
initiating the SSH session from inside the network to a specific
IP-address and port number? The problem is that it is not possible to
directly ssh into the network from outside the network.
I believe you could setup an ssh session from inside to outside
machine. As part of that session, try including port forwarding, of
say port 6666 of the outside box to the inside box port 22. See the
man page for ssh and look at the -R option.
insidebox$ ssh -R6666:127.0.0.1:22 outsideusername@xxxxxxxxxxxxxxxxxx
This will forward all traffic hitting outsidebox port 6666 to port 22
of the insidebox.
Then, if you have an ssh server setup on the inside box,
outsidebox$ ssh -p 6666 insideboxusername@xxxxxxxxx
I think would get you where you want to go.
Best Regards,
--
Todd H.
http://www.toddh.net/
.
- Follow-Ups:
- Re: Initiate SSH session from other side?
- From: Andrew Schulman
- Re: Initiate SSH session from other side?
- References:
- Initiate SSH session from other side?
- From: dspfun
- Initiate SSH session from other side?
- Prev by Date: Initiate SSH session from other side?
- Next by Date: Re: Benefits of VNC over RDP
- Previous by thread: Initiate SSH session from other side?
- Next by thread: Re: Initiate SSH session from other side?
- Index(es):
Relevant Pages
|
|