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