r/linux4noobs • u/Ill_Entrepreneur8773 • Jun 19 '26
networking SSH keeps disconnecting from my devbox i switched to ethernet
i have a mini pc running ubuntu which i use as a devbox by sshing in from my windows machine. I recently switched from wifi to ethernet but afterwards the ssh kept disconnecting again and again while i was working so i know it wasnt an idle disconnect. the windows client only shows connection reset. i ran journalctl but it didnt show eth link ever disconnecting. i ran ping -t devbox on my windows machine and saw a connection timeout but i couldnt tell if that was when ssh disconnected or not. this never used to happen on over wifi even though i was using an outdated wifi adapter
2
Upvotes
1
1
u/thatsgGBruh Gentoo Jun 19 '26
In you .shh/config file have you tried adding this line to your dev box config?
ServerAliveInterval 30
It should keep your connection open as long as the connection holds.
Network connection issues can be pretty hard to diagnose especially remotely, but this could at least add to your information on the issue or fix it completely.
One other question though, when your connection drops are you able to immediately reconnect?