• caglararli@hotmail.com
  • 05386281520

How to Enforce Maximum Authentication Time in OpenSSH Configuration? [migrated]

Çağlar Arlı      -    11 Views

How to Enforce Maximum Authentication Time in OpenSSH Configuration? [migrated]

I'm attempting to enhance the security of my OpenSSH server configuration by enforcing a maximum authentication time limit. However, upon trying to implement this by adding the MaxAuthAge option to the sshd_config file, I encountered an error indicating that the option is not recognized. Despite searching through the OpenSSH documentation, I couldn't find a direct method to set a maximum authentication time.

What is the recommended approach for enforcing a maximum authentication time limit in OpenSSH? Are there alternative methods or configurations that can effectively achieve this goal? Any insights or suggestions would be greatly appreciated.

Here's the error message I encountered when attempting to validate the configuration:

lalatendu@swain:~$ /usr/sbin/sshd -tT
/etc/ssh/sshd_config: line 100: Bad configuration option: MaxAuthAge
/etc/ssh/sshd_config: terminating, 1 bad configuration options
lalatendu@swain:~$ 

You can find my SSHD configuration file here.