From 18c5f6b7c8679ac93d6379f72b6f360b1b561df9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 7 Apr 2014 07:54:53 +0100 Subject: [PATCH] Clear existing ssh host keys --- beaglebone.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beaglebone.txt b/beaglebone.txt index a9ddf01a..4d36699f 100644 --- a/beaglebone.txt +++ b/beaglebone.txt @@ -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 #+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 +rm /etc/ssh/ssh_host_* +dpkg-reconfigure openssh-server service ssh restart #+END_SRC