User Tools

Site Tools


regenerate_ssh_server_key

How to regenerate ssh server key

- Delete old ssh keys

$/bin/rm -v /etc/ssh/ssh_host_*

- Reconfigure opens -

$dpkg-reconfigure openssh-server

- Restart the service -

$/etc/init.d/ssh restart

- Update your client with new key -

ssh-keygen -R IP_of_your_server


Source : cyberciti.biz


- created date : 2017.02.22 -

regenerate_ssh_server_key.txt · Last modified: 2017/02/22 16:27 by admin