@Steeldriver - great post. However, I see mixed results with .local lookups here. Tried 3 different pings for 3 different machines on the local network "hostname.local"
* 1 is correct - worked as hoped.
* 1 is on an incorrect subnet (vnet* device address returned)
* 1 does not answer. failed.
This could be an issue with my network, since we have DNS and /etc/hosts setup for almost all the machines already.
Another workaround is to create a ~/.ssh/config file. Then an alias for the hostname can be added, but the IP address can be put in for address resolution.
Code:
host regulus
Ciphers arcfour
user rooter
hostname 172.22.22.44
port 64022
Multiple stanzas like that can be used. The manpage is pretty good ssh_config is the name. All tools which are built on ssh will support these settings. ssh, sftp, scp, rsync, rdiff-backup, etc.... userid, ports, cyphers are added to those commands automatically. No more need to remember if a cmd required -p or -P to specify a port or what userid is setup on the other host!
Anyway - just another option to use with ssh.
Bookmarks