Celeb Glow
general | March 30, 2026

SSH over WiFi suddenly stops on laptop

I have a laptop running Ubuntu server with Plex (Server runs on WiFi (2.4 GHz)). When sshing into the server it usually works but randomly (like after 40min) it says host down despite laptop still running and I have to reboot the server to use ssh again.

*Edit- I have noticed a pattern this usually happens when I disconnect from ssh by typing exit and after 10min minutes or more it says host down... etc the only solution I can do is to run htop or any other command to stop it from disconnecting.

onlysaikihere@hub: $ client_loop: ssh_packet_write_poll: Connection to 192.168.0.145 port 22: Host is down
sahishnukumar@Sahishnu-kumar ~ % ssh onlysaikihere0192.168.0.145
ssh: connect to host 192.168.0.145 port 22: Host is down
sahishnukumar@Sahishnu-kumar ~ % ssh onlysaikihere@192.168.0.145
ssh: connect to host 192.168.0.145 port 22: Host is down
sahishnukumar@Sahishnu-kumar ~ % ssh onlysaikihere0192.168.0.145
ATTA
AC
sahishnukumar@Sahishnu-kumar
~ % ssh onlysaikihere@192.168.0.145

using mosh gives following output

sahishnukumar@Sahishnu-kumar ~ % mosh onlysaikihere@192.168.0.145
/opt/homebrew/bin/mosh: Could not connect to 192.168.0.145, last tried 192.168.0.145: Host is down
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
/opt/homebrew/bin/mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).
sahishnukumar@Sahishnu-kumar ~ % 

plex server also stop working

FORMATTED LAPTOP AND ISSUE FIXED

4

1 Answer

Try setting SSH up for regular pings:

Host * ServerAliveInterval 60

Add this to the top of your ~/.ssh/config and sessions should no longer drop. The default, larger interval does not prevent that from happening.

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy