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 05-06-2007, 06:20 AM   #1
deepesh1081
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
Question can't ssh using hostname


I tried pinging and using “ssh” with hostname as configured in “/etc/sysconfig/network” and “/etc/hosts”, however, I was unable to do a ping using the hostname of another test machine for e.g.



[root@testserver1 ~]# ping testserver2

PING testserver2 (192.18.100.11) 56(84) bytes of data

From 192.168.100.10 icmp_seq=1 Destination Host Unreachable

From 192.168.100.10 icmp_seq=2 Destination Host Unreachable

OR

[root@testserver1 ~]# ping 192.168.100.11

PING 192.168.100.11 (192.168.100.11) 56(84) bytes of data

64 bytes from 192.168.100.11: icmp_seq=0 ttl=64 time=1.22 ms

64 bytes from 192.168.100.11: icmp_seq=1 ttl=64 time=0.268 ms

i can ssh using IP address but i cant ssh using the hostname.

I hope one of our enthusiastic members would help me tackle this concern.
 
Old 05-06-2007, 07:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
PING testserver2 (192.18.100.11) 56(84) bytes of data

typo?
 
  


Reply


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
SSH failing on hostname ArcLinux Linux - Networking 2 02-09-2007 12:56 PM
Problems using hostname and ssh RoughEdge Linux - Networking 4 06-08-2006 02:07 PM
can ssh by IP, can't by hostname. FLOODS Linux - Networking 7 09-19-2005 01:41 PM
Ping or SSh by hostname ElectroLinux Linux - Newbie 2 10-26-2004 03:21 AM
can't ssh through hostname romel Linux - Networking 4 07-25-2004 01:54 PM


All times are GMT -5. The time now is 01:48 PM.

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