Cannot ssh using domain name, only IP address
Posted on 2009-05-10
I have a small LAN running Ubuntu on several machines. I can login using SSH from one to another, but only if I use the IP address. Assume I am trying to ssh to a machine with an IP of 192.168.0.10 and a hostname of Desktop.
If I enter "ssh firstname.lastname@example.org" it logs me into Desktop to a prompt me@Desktop:~$
But if I try
"ssh me@Desktop" I get a message "ssh: Desktop: Name or service not known" even though I know that the hostname Desktop exists.
What am I missing?