I just bought a raspberry Pi 3. I am trying to run it but first it wrote connection refused on ssh attempt. After I ran the raspi-config and enabled the ssh I now get a Connection closed by 192.168.0.31. When I scan the ports on that machine the 22/tcp is open (using nmap).
What could be the problem?
I just found this solution, now the ssh works:
sudo rm /etc/ssh/ssh_host_*
sudo dpkg-reconfigure openssh-server
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With