2012/10/11 houkensjtu <houkens...@gmail.com> > Thanks Joe, Brian, Murphy > > As I post above, I forgot to say all these experiments were done in my > home on my laptop... > Now I am in my office and re-do all this experiment. > To be short, now all experiment which is done with ip address works well, > while if I do ssh USER@DEBIAN, it will say: > > ssh: Could not resolve hostname debian: Name or service not known > > I am wondering, who(or what device,server) will resolve the hostname? Is > it possible to resolve my laptop's name from my office?? > > 2012年10月11日木曜日 1時00分03秒 UTC+9 houkensjtu: > > Hi debianer! > > > > I am a newbie both of debian and networking... > > > > Recently I am trying to connect my home laptop(I have a router in my > home) from office. I read several articles on port forwarding. And I > succeeded in opening an 22 port on my router, also I started ssh server on > my home laptop. > > > > > > > > (suppose my username at home is USER, and my laptop is called DEBIAN) > > > > > > > > I did several experiment and I got confusing in some of its result. > > > > > > > > 1. ssh USER@DEBIAN > > > > > > > > works well!! > > > > > > > > 2. nc -vz my_home_external_ip 22 > > > > [my_home_external_ip] 22 (ssh) : Connection refused > > > > > > > > I cant understand why is it. Because I have actually succeeded in test 1! > > > > > > > > 3. ssh -l USER my_home_external_ip > > > > ssh: connect to host my_home_external_ip port 22: Connection refused > > > > This also doesnt work! I thought it should be equivalent to test 1, but > things just dont work. > > > > > > > > Any one can explain this? > > > > > > > > > > > > -- > > > > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > > > > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > > > > Archive: > http://lists.debian.org/95c24d80-4052-429d-8658-cf3f447ff...@googlegroups.com > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: > http://lists.debian.org/84255302-35f8-4009-9f05-af25a076d...@googlegroups.com > > Hello. You can use such services as no-ip.com or dyndns.org to create a DNS A-record for your home external IP-address. This DNS record will be resolved everywhere. Also you can modify the 'hosts' file on your work computer (/etc/hosts in Linux and c:\windows]system32\drivers\etc\hosts in windows) and put the name of your home computer there. With second approach you'll be able to resolve the name on your work computer only.
-- Best regards, Valery Mamonov.