wiki-grav/pages/04.other/ssh/regenerate-ssh-keys/default.en.md

19 lines
248 B
Markdown
Raw Normal View History

---
title: "Regenerate SSH Keys"
visible: true
---
[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`