I'm a user on a system, and I want to know if that system is running sshd with a ClientAliveInterval > 0, which would tell me if I need to worry about using ServerAliveInterval locally or not. I can't read
/etc/ssh/sshd_config, but is there a way to query sshd or something similar?
Look at my question. This is related to yours. So the answer is: Drop the link and look if the process on the server and client side dies.
You can also watch your connection with
tcpdump -i $INTERFACE port ssh I think it even decodes "ssh-keepalive" if it is active.
The default is "not active".