15
8
I want to set up an alias server name on my laptop (Linux). I do not want to use the /etc/hosts/
file since the IP address of the remote server changes. The reason I want to do this is because the server name is 27 characters long. I want to do this:
ssh server
Instead of:
ssh server.subdomain.domain.com
I have several subdomains that I use. How do I set this up?
PS: I do not consider this a dupe because other similar answers do not address the fact that an IP address will change.
~/.ssh/config
and/etc/resolve.cnf
below are both excellent answers. – Jess – 2013-03-30T11:47:19.237