Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Raspberry Pi Connection closed SSH

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?

like image 997
durisvk Avatar asked Feb 05 '23 01:02

durisvk


1 Answers

I just found this solution, now the ssh works:

sudo rm /etc/ssh/ssh_host_*
sudo dpkg-reconfigure openssh-server
like image 170
durisvk Avatar answered May 16 '23 07:05

durisvk