About multiple hosts with same hostname

Bob Proulx bob at proulx.com
Wed Apr 1 08:15:15 EST 2009


Christian Iversen wrote:
> An even better solution, now that I think of it, could be to define a 
> shell function named "ssh" that resolves the host part into a FQDN, 
> based on the search domain for the host, checked against a whitelist of 
> valid customer site named.

Don't forget that ssh is used by other commands such as scp and rsync
and others.  if your shell function is purely for the shell then they
won't get the same behavior and will surprise people by not working
the same.

Bob


More information about the openssh-unix-dev mailing list