Re: piggy-backing through an ssh session
From: Mark Gordon (spamtrap@flash-gordon.me.uk)Date: 10/22/02
- Next message: Christian Wenz: "Re: ssh2 and password"
- Previous message: Jean: "Re: Determining the key used to establish an SSH connection"
- In reply to: Alan Strassberg: "piggy-backing through an ssh session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 22 Oct 2002 17:05:59 +0100 From: Mark Gordon <spamtrap@flash-gordon.me.uk>
On 20 Oct 2002 22:30:42 -0700
alan@internal.wj.com (Alan Strassberg) wrote:
> Is this possible: ssh from box A behind a firewall to
> box B on the Internet. On box B 'hijack' the ssh session and
> connect back to box A ?
>
> I'm donating some time to a school that only has dialup on
> inbound but is Internet connected. Would be handy to be able
> to connect back assuming I can piggyback on an existing session.
> Plus I've always wondered if this was possible.
When you ssh from box A to box B you can port forward port 1234 on box B
to port 22 on box A to allow you to ssh back from box B to box A. An
example hacked from my .ssh/config file at home (boxa) is:
host boxb
RemoteForward 1234 localhost:22
On box B you can then have in the .ssh/config file:
host boxa
HostName localhost
Port 2222
I use this to ssh into the office (which I am allowed to do) before I
leave home in the morning. Then I use "ssh boxa" to shell onto my
machine at home.
This method only allows boxb to ssh to boxa. If you want other machines
on the same network as boxb to be able to ssh via boxb to boxa you will
have to investigate prot forwarding a bit more yourself. I've not tried
since I only want the one machine to be able to get in to my home
network.
-- Mark Gordon Paid to be a geek.
- Next message: Christian Wenz: "Re: ssh2 and password"
- Previous message: Jean: "Re: Determining the key used to establish an SSH connection"
- In reply to: Alan Strassberg: "piggy-backing through an ssh session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|