turns out ssh keys aren't always generated correctly

I wasn’t able to ssh into one of my Pis that had Raspbian Lite freshly installed, turns out the keys can actually be corrupt on a fresh installation.

The easy fix:

1
2
sudo rm /etc/ssh/ssh_host*
sudo dpkg-reconfigure openssh-server