LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-10-2007, 09:51 AM   #1
P31
LQ Newbie
 
Registered: May 2005
Distribution: Ubuntu dapper
Posts: 15

Rep: Reputation: 0
Can't remote login using ssh with DNS


I signed up with http://www.no-ip.com/index.php, which provides dynamic DNS services. I have openssh installed and running. On my windows box, I could use putty and ssh in with the 192.168 address. But when I tried it with the hostname, it doesn't work. I have forwarded the port on my router to the ubuntu box and I checked it with http://www.canyouseeme.org/ to see if it's really opened. When I tried to use the hostname instead of ip address, putty would return saying connection timed out. Any idea?
 
Old 02-10-2007, 09:59 AM   #2
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
Did you do this

Quote:
when I tried it with the hostname, it doesn't work
from your internal network? And the hostname that you used is the publicly accessible hostname ie. the one with no-ip?

That won't work unless you are on the internet hitting your port forwarded router. Put a different host name using the internal ip into a hosts file on your machine and it will work.
 
Old 02-10-2007, 10:05 AM   #3
P31
LQ Newbie
 
Registered: May 2005
Distribution: Ubuntu dapper
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by xjlittle
Did you do this



from your internal network? And the hostname that you used is the publicly accessible hostname ie. the one with no-ip?

That won't work unless you are on the internet hitting your port forwarded router. Put a different host name using the internal ip into a hosts file on your machine and it will work.

I see, so if I was to try on the outside, i.e. not in the internal network, then it would work?
 
Old 02-10-2007, 10:24 AM   #4
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
Quote:
I see, so if I was to try on the outside, i.e. not in the internal network, then it would work?
That would be correct. Reason being is when you use the public hostname you leave the internal network via the public ip, go to the internet to resolve and then try and re-enter you internal network via your public ip. Your router\firewall or whatever you have setup won't allow this as it would be seen as spoofing.
 
Old 02-10-2007, 10:26 AM   #5
P31
LQ Newbie
 
Registered: May 2005
Distribution: Ubuntu dapper
Posts: 15

Original Poster
Rep: Reputation: 0
aah I see. Thanks xjlittle
 
Old 02-10-2007, 10:58 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by xjlittle
That would be correct. Reason being is when you use the public hostname you leave the internal network via the public ip, go to the internet to resolve and then try and re-enter you internal network via your public ip. Your router\firewall or whatever you have setup won't allow this as it would be seen as spoofing.
I think this behavior can be router specific. I've got two routers on my network, a Motorolla (for VOIP) and a Linksys (for my general network). If I have my Motorolla router as the WAN facing router (i.e. Internet ->Modem->Motorolla->Linksys->LAN), then I see the same problem as P31. However, if I put my Linksys in Front (Internet->Modem->Linksys->LAN(and Motorolla) then using my no-ip domain from the LAN side works fine.
 
Old 02-10-2007, 11:24 AM   #7
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
Hangdog42 I don't doubt that one bit there are so many routers and configs out there. I went the direction I did because the problem that the OP describes is the one for which I gave that explanation.
 
Old 02-10-2007, 12:44 PM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by xjlittle
Hangdog42 I don't doubt that one bit there are so many routers and configs out there. I went the direction I did because the problem that the OP describes is the one for which I gave that explanation.

Please don't take my post as criticism of your answer. I was just expanding on your explanation a bit.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh remote login sKAApGIF Linux - Networking 4 11-22-2006 07:13 AM
ssh remote login help LAdProg2005 Linux - Networking 2 10-05-2005 12:39 PM
Dynamic DNS for remote telnet ssh logins? nadsab Linux - Networking 10 03-27-2004 11:53 AM
Changing SSH remote login look untwisted Linux - Software 2 03-14-2004 12:50 PM
I need remote login/ ssh/ whatever BryanMC Linux - General 6 05-26-2003 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration