ssh to my computer behind NAT

Ed Greshko Ed.Greshko at greshko.com
Tue Mar 9 10:34:32 UTC 2010


Hiisi wrote:
> Dear list!
> I would like to be able to ssh to my home computer located behind my
> ISP' NAT. I know, I can tunnel to it through some middle host and
> actually I'm doing it at the moment. But I'm fancy is there a better
> solution? Is there a possibility of not using any computer at the
> middle to connect to my home system from the outside world? Can I
> connect to it directly using some magic setup? Any thoughts?
>   
Give this a try.....

1.  ssh into the machine that you normally log into first.

2.  Create a executable file in ~/bin  maybe call it "gothere" with the
contents simply "ssh user at home.computer".

3.  exit from that and back to the remote system.

4.  Use "ssh -t user at middle.host bin/gothere

Now, I have all of my logins set up to us public key authentication. 
So, I don't get password prompts....but it works just fine.
OK, I also tried to another host where I needed to supply a password and
that also worked....

[egreshko at misty ~]$ ssh -t f12l bin/gothere2
egreshko at 192.168.0.191's password:
Last login: Tue Mar  9 18:31:24 2010 from 192.168.0.194
[egreshko at f12k ~]$ exit
logout
Connection to 192.168.0.191 closed.
Connection to f12l closed.
[egreshko at misty ~]$




-- 
The greatest love is a mother's, then a dog's, then a sweetheart's. --
Polish proverb

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100309/64570a1e/attachment.bin 


More information about the users mailing list