I believe this is an error. Every body is telling me that the ssh host key if deleted will be generated by reboot or restart sshd.
I have an ubuntu 9.10 machine (which run on Amazon EC2). This machine doesnot have sshd, just ssh. So, I delete all the key inside /etc/ssh with the thought that the key will be re-generated once I reboot the machine.
I'm not sure if it's correct, but if I reboot the machine, then the machine is no longer connectable via SSH.
Right after delete the keys, I try
sudo service ssh reload.
However, key is not generated. I have to regenerate it with ssh-keygen.
Would you guys please explain me why the key is not re-generated?