My goal is to increase my ssh connection timeout on my server, where I have limited permisssions. I do not have permission to even read /etc/ssh/sshd_config
(nor append/write) and I do not have sudo
.
Locally on my PC, I already did in ~/.ssh/config
:
Host *
ServerAliveInterval 300
ServerAliveCountMax 2
However, even after reloading my local ssh deamon (sudo systemctl reload sshd
), my connection would break much sooner than expected.
My question is: Is there a different way to tell to my server to keep my connection alive, different than the standard global solution of modifying /etc/ssh/sshd_config
with ClientAliveInterval X
?
~/.ssh/config
is still the client config anyway. Reloading the local server is therefore futile for sure. (2) This is how these*Alive*
settings work. IfServerAlive*
don't help ten probably there is another culprit. What message (if any) do you get locally when disconnected?