ClientAliveInterval is the number of seconds after which, if no data has passed the encrypted channel, the server will send a keepalive message.
ClientAliveCountMax is the maximum number of keepalive messages the server will send to the client, without receiving a response, before it disconnects the client.
ClientAliveInterval defaults to
0 which indicates that these keepalive messages will not be sent at all. Yours is set to
60, which would indicate you want to close idle sessions after 1 minute of inactivity.
ClientAliveCountMax is set to
0, which (to my understanding) would disable the limit. Try setting this to
1. That should tell
sshd that it should close idle sessions after a single iteration of 60 seconds idle.
If you want to close the connection after 10 idle minutes, you could set: