ssh from work to home

Christopher K. Johnson ckjohnson at gwi.net
Thu Mar 30 04:16:45 UTC 2006


Andrew wrote:

> Friends,
>
> I'm stuck behind a firewall at work that will not allow inbound ssh -- 
> but it will allow outbound ssh.
>
> Work is a private 10... network. My home computer is connected to a 
> cable modem with an assigned IP address
>
> I want to open an xterm on my home computer and access my WORK 
> computer. Both boxes run FC4.
>
> The catch (for me anyway) is that I have to issue the command (create 
> the ssh connection) from my work terminal ...
>
> I've googled this and I'm wondering if ssh -R is what I'm looking for ??
>
> If so ... is this right way to do what I want ??
>
> When I leave work ...
> work> ssh -R home_ip:2222:work_ip:22
>
> When I get home ...
> home> xterm -e ssh home_ip:2222
>
> Any suggestions would be appreciated.
>
> Best wishes,
>
> Andrew
> -- 
> I only reply to the mailing list

You have to run sshd on both machines for what you describe.
And then the commands would be slightly different:
work> ssh user at home_ip -R 2222:localhost:22
home> ssh user at localhost -p 2222

Chris

-- 
   "Spend less!  Do more!  Go Open Source..." -- Dirigo.net
   Chris Johnson, RHCE #804005699817957




More information about the fedora-list mailing list