PDA

View Full Version : What is the New way to generate SSH Keys in Kali Linux?



whitedragon21
2018-02-12, 18:58
I had a question about the `sshd-generate` command. I noticed this was an older command for Backtrack to generate public and private keys. I found this url

http://blog.7-a.org/2013/04/kali-linux-dude-wheres-my-sshd-generate.html

On how to create the new SSH private and public keys but I wanted to make sure it is the correct way of doing it. I don't want to mess anything up as I am learning.

Thanks

re4son
2018-02-12, 21:19
Yep, that's the way.

It's basically just:


rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server