Avoiding ssh host key lookups for your home subdomain?

Nigel Stewart nigels at nigels.com
Fri Apr 4 02:03:12 EDT 2008


Scott,

I had the same problem at the office with a multi-boot
usb-connected drive that has various distros installed.
Sometimes I boot linux on a laptop, but there are
various other boxes that I also use it on, some
with dynamically assigned addresses, others fixed.

My solution was to clone the host keys across the various
machines.

Specifically, the following files:

$ ls -la /etc/ssh/ssh_host_*_key*
-rw------- 1 root root 1196 2007-10-12 11:40 /etc/ssh/ssh_host_dsa_key
-rw-r--r-- 1 root root 1114 2007-10-12 11:40 /etc/ssh/ssh_host_dsa_key.pub
-rw------- 1 root root 1675 2007-10-12 11:40 /etc/ssh/ssh_host_rsa_key
-rw-r--r-- 1 root root  394 2007-10-12 11:40 /etc/ssh/ssh_host_rsa_key.pub

So, the fingerprint will always match, no matter the name or address.

Hope it helps.

- Nigel



More information about the gnhlug-discuss mailing list