LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh to hostname fail (http://www.linuxquestions.org/questions/linux-networking-3/ssh-to-hostname-fail-942470/)

vjramana 04-29-2012 10:31 PM

ssh to hostname fail
 
Greetings,

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

Quote:

"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

Quote:

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.
Regards

Vijay

es0teric 04-29-2012 10:45 PM

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.


All times are GMT -5. The time now is 10:24 PM.