Is there a way to define host aliases (like in /etc/hosts) on a per user basis, i.e. in a file /home/user/.hosts ?
My primary objective is to easily share host aliases via rsync between the machines in my small lan. Since there is no machine that will be reliably always connected, a DNS server is not an option (right?).
Thank you.
alias ssh="ssh "in your .bashrc (note the trailing whitespace at the end of the alias) along withalias myhost="me@real-name-of-my-host.com"and then you can sayssh myhostand it will work. – Noah Sussman Jul 11 '12 at 20:40