Skip to main content
1 of 4
Rajan Pathak
  • 157
  • 2
  • 3
  • 7

Setting up ClientAliveCountMax and ClientAliveInterval is not working as expected

In my /etc/ssh/sshd_config file I have set the below parameter.

ClientAliveInterval 10 ClientAliveCountMax 3

Now from host machine I did ssh to the my serevr(where I made changes to /etc/ssh/sshd_config) file.After that I restarted the ssh sevices by running

/etc/init.d/sshd reload

I am expecting the ssh connection should be disconnected after 30 seconds but it keep on than there for almost an hour now.

Can any body let me know what is going wrong here.

I am using openssh version 6.1.

Rajan Pathak
  • 157
  • 2
  • 3
  • 7