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


  Search this Thread
Old 04-29-2012, 09:31 PM   #1
Registered: Sep 2009
Posts: 89

Rep: Reputation: 0
ssh to hostname fail


I installed Centos-6.2 OS in GPU (Graphical Processing Unit) NVIDIA-tesla C2075. The installation went smoothly. I named my hostname as "abcdef".

After installation I tried to ssh to the server. Something like " ssh abcdef". I get reply as

"ssh: Could not resolve hostname abcdef: Name or service not known"
When I do the same thing to my other Ubuntu server I get reply soemthing like

vijay@abcd1234:~$ ssh abcd1234
The authenticity of host 'abcd1234 (::1)' can't be established.
RSA key fingerprint is
Are you sure you want to continue connecting (yes/no)?

I need to resolve this issue. Can anyone help?

Many thanks in advance.


Last edited by vjramana; 05-01-2012 at 06:18 AM.
Old 04-29-2012, 09:45 PM   #2
Registered: Apr 2007
Distribution: Ubuntu
Posts: 105

Rep: Reputation: 19
It sounds like the host you're trying to SSH from doesn't know what address the other host's name is at. Do you know if you're using a DNS server to map hostnames to IP addresses, or are you just keeping that in your /etc/hosts file?

If you're not sure, then updating /etc/hosts with the hostname and IP address will probably suffice. Any time you type a hostname, your system needs to translate that to an IP address before it can communicate. Most systems use that file to map names to addresses.
1 members found this post helpful.


ssh, ssh access

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
FC13 install can ping by hostname, ssh by hostname fails jeffk42 Linux - Networking 4 11-14-2011 11:27 AM
ssh hostname d-x-4 Linux - Networking 3 04-30-2010 04:08 PM
Hostname for SSH llagunocap Linux - Newbie 10 05-16-2008 07:57 AM
startx fail , error shown "hostname: Unknown host " syseeker Red Hat 4 07-05-2006 11:40 AM
can't ssh through hostname romel Linux - Networking 4 07-25-2004 01:54 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:05 PM.

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