wiki-grav/pages/04.other/01.ssh/02.regenerate-ssh-keys/default.en.md
2022-07-07 08:32:44 +02:00

14 lines
236 B
Markdown

---
title: 'Regenerate SSH Keys'
---
[toc]
## 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`