"reverse"-ssh ?

Michael Kearey mutk at iprimus.com.au
Thu Dec 4 03:01:43 UTC 2003


Don wrote:
>  From my work office I can ssh to my home machine ... works great.....
>  From home I can NOT ssh back to my work, because the work firewalls are 
> secure in that regard. (Changing the firewall settings at the office is 
> not an option available to me).....
>  
> Is there a way I can start a session FROM my office, and then from home, 
> somehow "piggy back" on that so I could work on the office machine from 
> home?
>  
> So, effectively, from my work machine I'd initiate a session at the 
> other end (my home). When I got home I could continue working on the 
> machine that's in the office.
>  
> Thanks,
> Don


You can use TCP forwarding.
 From your work box, something like:

ssh -C -R 1025:work.box:22 username at home.box

should setup a listening socket on port 1025 at your home box, and 
forward all connections to your work box, to port 22.

You should then be able to ssh into your work box at home by:
ssh -p 1025 workuser at localhost

man ssh for more details.
Cheers,
Michael





More information about the fedora-list mailing list