Clear existing ssh host keys

This commit is contained in:
Bob Mottram 2014-04-07 07:54:53 +01:00
parent 3f01f6532a
commit 18c5f6b7c8
1 changed files with 3 additions and 1 deletions

View File

@ -575,9 +575,11 @@ MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1 KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
#+END_SRC #+END_SRC
CTRL-X CTRL-S to save, then CTRL-X CTRL-C to exit. CTRL-X CTRL-S to save, then CTRL-X CTRL-C to exit. Now clear out any pre-existing host keys and reconfigure the ssh server.
#+BEGIN_SRC: bash #+BEGIN_SRC: bash
rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
service ssh restart service ssh restart
#+END_SRC #+END_SRC