1
21.1 Legacy Series / Terminate SSH session after a period of inactivity time
« on: March 17, 2021, 09:37:55 am »
Hello everyone!
I am hardening OPNsense 21.2.2; right now, I am working in SSH, but I cannot find a way to terminate an SSH session after a period of inactivity time from the user.
I have found in the sshd_config which is located in the /usr/local/etc/ssh/ directory, the following parameter:
ClientAliveInterval 30
But this is not working... using ssh with -vvv (verbosity), it looks like every 30 seconds, OPNsense sends a message to the client to check that it is alive, the SSH client answer automatically, and the connection is never closed!
I intend that after 10 mins of not using the SSH connection, OPNsense closes it automatically. Any help on this point?
Thanks a lot!
I am hardening OPNsense 21.2.2; right now, I am working in SSH, but I cannot find a way to terminate an SSH session after a period of inactivity time from the user.
I have found in the sshd_config which is located in the /usr/local/etc/ssh/ directory, the following parameter:
ClientAliveInterval 30
But this is not working... using ssh with -vvv (verbosity), it looks like every 30 seconds, OPNsense sends a message to the client to check that it is alive, the SSH client answer automatically, and the connection is never closed!
I intend that after 10 mins of not using the SSH connection, OPNsense closes it automatically. Any help on this point?
Thanks a lot!