From de6c4c445c433b658cdabbc952eb3e7f6f80d621 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 25 Jun 2022 11:32:42 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- .../02.ssh/02.regenerate-ssh-keys/default.en.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pages/04.other/02.ssh/02.regenerate-ssh-keys/default.en.md diff --git a/pages/04.other/02.ssh/02.regenerate-ssh-keys/default.en.md b/pages/04.other/02.ssh/02.regenerate-ssh-keys/default.en.md new file mode 100644 index 0000000..5567c6d --- /dev/null +++ b/pages/04.other/02.ssh/02.regenerate-ssh-keys/default.en.md @@ -0,0 +1,13 @@ +--- +title: 'Regenerate SSH Keys' +--- + +## Remove from known_hosts +`$ ssh-keygen -R (server name)` + +## Debian +Remove the old Hostkeys +`# rm -v /etc/ssh/ssh_host_*` + +Generate new Hostkeys +`# dpkg-reconfigure openssh-server` \ No newline at end of file