2022-06-25 11:32:42 +02:00
|
|
|
---
|
|
|
|
title: 'Regenerate SSH Keys'
|
2022-11-19 15:25:20 +01:00
|
|
|
visible: true
|
2022-06-25 11:32:42 +02:00
|
|
|
---
|
|
|
|
|
2022-06-25 11:33:03 +02:00
|
|
|
[toc]
|
2022-06-25 11:32:42 +02:00
|
|
|
## Remove from known_hosts
|
|
|
|
`$ ssh-keygen -R (server name)`
|
|
|
|
|
|
|
|
## Debian
|
|
|
|
Remove the old Hostkeys
|
|
|
|
`# rm -v /etc/ssh/ssh_host_*`
|
|
|
|
|
|
|
|
Generate new Hostkeys
|
2022-11-19 15:25:20 +01:00
|
|
|
`# dpkg-reconfigure openssh-server`
|