View Full Version : [ubuntu] How can I connect to server using a host name?

June 29th, 2008, 04:58 PM

I am wondering how can I use hosts names instead of IPs when connecting to a local SSH server (running on Ubuntu Hardy) through Places->"Connect to Server...".

All computers on the network are connected to a router which assigns IPs randomly (although it sometimes to assign the same IPs for the same computers).

Thanks in advance,

June 29th, 2008, 06:08 PM
You should be able to edit your hosts file, although if the ip's of the computer changes you would need to update the entries in this file. Perhaps someone knows a better way, but you could try this to start with.

gksudo gedit /etc/hosts

Place the ip address and the name you wish to give it.

June 30th, 2008, 03:10 AM
My local DNS server (which happens to be my router) has names/addresses in it's hosts file.