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?
Asked
Active
Viewed 1,307 times
2

Rui F Ribeiro
- 56,709
- 26
- 150
- 232

brc
- 123
1 Answers
3
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".
tcpdump
tip worked pretty well, as of 4.1.1 it didn't seem to decode ssh-keepalive, but the regular pulse of packets every 30 seconds pretty well answered my question. – brc Mar 18 '12 at 04:42