Add function to write cluster SSH key to known_hosts file
authorMichael Hanselmann <hansmi@google.com>
Tue, 18 Mar 2008 13:02:14 +0000 (13:02 +0000)
committerMichael Hanselmann <hansmi@google.com>
Tue, 18 Mar 2008 13:02:14 +0000 (13:02 +0000)
commit75a5f45659847d623c83f3cf2e2fbbf8e621b15b
treeda5f05ad9318430f503949b06669977d88e087dc
parent21a6c82687f160fa014b6806786002cb2a96546a
Add function to write cluster SSH key to known_hosts file

The whole Ganeti cluster has a single SSH key. Its fingerprint is
written to Ganeti's known_hosts file, together with an alias. This
allows us to always use that alias instead of the real hostname,
making management of the known_hosts file much easier.

This patch does not handle an upgrade from an earlier version.

Reviewed-by: ultrotter
lib/ssh.py
test/Makefile.am
test/ganeti.ssh_unittest.py [new file with mode: 0755]
test/mocks.py