Linux Lite Forums
ssh connection reset in LinuxLite 7.0 - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Hardware - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=6)
+--- Forum: Network (https://www.linuxliteos.com/forums/forumdisplay.php?fid=24)
+--- Thread: ssh connection reset in LinuxLite 7.0 (/showthread.php?tid=9191)



ssh connection reset in LinuxLite 7.0 - PrivateTech - 06-23-2024

when trying to connect to a fresh LinuxLite 7.0 installations on multiple computers, all of them had the same error:
"kex_exchange_identification: read: Connection reset"
"Connection reset by [IPADDR] port 22"
Same happens when trying to do "ssh localhost" in a terminal window on the local computer.
It says "kex_exchange_identification: read: Connection reset by peer"
also trying "ssh [USER]@[LOCAL_LAN_IP], which gives an error:
"ssh: connect to host [LOCAL_LAN_IP] port 22: Connection refused"

if it makes any difference:
- ping works fine
- the installation is fresh, drive reformatted
- install all updates first
- tried to install/reinstall openssh-server, still the same
- just tried the same on Lubuntu - works fine

Thank you.



Re: ssh connection reset in LinuxLite 7.0 - stevef - 06-23-2024

See if the symptoms change after running
Code:
sudo ssh-keygen -A



Re: ssh connection reset in LinuxLite 7.0 - PrivateTech - 06-23-2024

PERFECT!
It worked, thank you!
I tried every other suggestion on the internet. None worked except for yours. Much appreciated.
Even though I needed to change the key on the client side (or delete known hosts file).
Back in business now!

(06-23-2024, 06:46 AM)stevef link Wrote:See if the symptoms change after running
Code:
sudo ssh-keygen -A



Re: ssh connection reset in LinuxLite 7.0 - stevef - 06-23-2024

Quote:It worked, thank you!

You're welcome.

Topic moved to Networks - more likely that other people affected will start their search in that section.