Trying to start an ssh server. When you encounter this error:

Here is the solution:

If you dont have the -A option which generates the host keys, you can generate them like so:

Technically the above commands are overkill as I ask for dsa, rsa and ecdsa keys when in reality 1 or 2 will do. But in the end having all 3 keys doesnt hurt.

Link to check out

https://bbs.archlinux.org/viewtopic.php?id=144449
http://www.cloudvps.com/community/knowledge-base/regenerating-ssh-host-keys/
https://www.digitalocean.com/company/blog/avoid-duplicate-ssh-host-keys/

The end.

Leave a Reply

Your email address will not be published. Required fields are marked *