Re: ssh to my computer behind NAT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx".

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

4.  Use "ssh -t user@xxxxxxxxxxx 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@misty ~]$ ssh -t f12l bin/gothere2
egreshko@xxxxxxxxxxxxx's password:
Last login: Tue Mar  9 18:31:24 2010 from 192.168.0.194
[egreshko@f12k ~]$ exit
logout
Connection to 192.168.0.191 closed.
Connection to f12l closed.
[egreshko@misty ~]$




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

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux