janmojzis / tinyssh

TinySSH is small server (less than 100000 words of code)
Creative Commons Zero v1.0 Universal
1.43k stars 78 forks source link

Server times out connections despite ServerAlive. #86

Open dirkson opened 6 months ago

dirkson commented 6 months ago

After almost exactly one hour of no active ssh use, the ssh connection drops with the error message "Connection to [server] closed by remote host.".

This happens regardless of client "ServerAliveInterval" and "ServerAliveCountMax" settings. These settings DO successfully keep the connection alive on a standard ssh server.

Server logs show messages like:"tinysshd: trSXlcT3: fatal: closing connection (timed out){main_tinysshd.c:43}"