First, I had to stop ssh service.
configureThen navigated to ssh directory and deleted the keys.
delete service ssh
commit
suThere were six keys. I removed all of them.
cd /etc/ssh
ls
rm ssh_host_*Upgraded the packages.
apt-get updateOpenSSL package got upgraded.
apt-get upgrade
After that I wanted to enable the ssh service again.
configureHowever, since I deleted all keys, the service complained about missing keys. Two keys get generated automatically, others have to be generated manually.
set service ssh
commit
ssh-keygenNext, I entered the proper path and filename for the rsa keys.
/etc/ssh/ssh_host_rsa_keyRepeated this step for dsa keys.
ssh-keygen -t dsaFinally, I repeated disabling and enabling ssh service. Done.
/etc/ssh/ssh_host_dsa_key
No comments:
Post a Comment