LinuxQuestions.org
Review your favorite Linux distribution.
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-03-2010, 12:53 PM   #1
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Rep: Reputation: 25
Question SSH working via IP address, but not host?


This is a fun one (x used in place of real IP's and hostnames):

Code:
$ host 134.174.xxx.xx
xx.xx.174.134.in-addr.arpa domain name pointer xxx.xxx.xxx.com.

$ host xxx.xxx.xxx.com
xxx.xxx.xxx.com has address 134.174.xxx.xx

$ nslookup xxx.xxx.xxx.com
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name: xxx.xxx.xxx.com
Address: 134.174.xxx.xx

$ ssh -p 22 someuser@xxx.xxx.xxx.com
ssh: connect to host xxx.xxx.xxx.com port 22000: Connection timed out
... however, logging in via IP address:

Code:
$ ssh -p 22 someuser@134.174.xxx.xx
someuser@134.174.xxx.xx's password:
... works fine.

Any idea what's going on here?

Last edited by bluesword1969; 02-03-2010 at 12:55 PM.
 
Old 02-03-2010, 01:03 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
has to be something within DNS, add a few -v's to the ssh command line and you'll be able to see what IP it does try to connect to after the name resolution.
 
Old 02-03-2010, 01:11 PM   #3
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Original Poster
Rep: Reputation: 25
Question

Quote:
Originally Posted by acid_kewpie View Post
has to be something within DNS, add a few -v's to the ssh command line and you'll be able to see what IP it does try to connect to after the name resolution.
Hey acid. :-)

Don't you hang out in IRC or Gentoo forums, or something? :-)

Anyway, I shall give that a go. Weird stuff, that's for sure.
 
Old 02-03-2010, 01:13 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
I used to, not for a few years now. Mainly here or b3ta.com
 
Old 02-03-2010, 01:30 PM   #5
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Original Poster
Rep: Reputation: 25
Huh.

Check this out:

http://pastebin.com/m641a2450
 
Old 02-03-2010, 01:43 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Hmmm, well that's VERY strange. I would look to run tcpdump to 1) watch the TCP packet for the connection and see the destination address for sure, and 2) See the DNS query to see what it actually returns.
 
1 members found this post helpful.
Old 02-03-2010, 01:52 PM   #7
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by acid_kewpie View Post
I used to, not for a few years now. Mainly here or b3ta.com
P.S. Every time I try out the 'distro chooser' in your sig, I always but always get Gentoo or Slackware. :-)
 
  


Reply

Tags
dns, nslookup, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can ssh into host on lan using WLAN address, but not through LAN address gurkakrieg Slackware 4 01-05-2010 07:19 AM
ssh: connect to host .....No route to host soumyacs Linux - Newbie 5 10-27-2009 10:03 AM
Fedora 10/unable to ssh out from box to remote host (SSH within LAN ok) huskeypm Linux - Networking 3 04-14-2009 07:37 PM
how to configure SSH to allow or deny specify host(ip address). hocheetiong Linux - Newbie 9 01-17-2008 01:40 PM
How to setup a host.deny and host.allow for SSH? explorer1979 Linux - Security 2 01-31-2005 05:28 PM


All times are GMT -5. The time now is 08:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration