Chapter 10 Install and System Administration for FortiOS 5.0 : Basic Administration : Administrators : Security Precautions : SSH login time out
  
SSH login time out
When logging into the console using SSH, the default time of inactivity is 120 seconds (2 minutes) to successfully log into the FortiGate unit. To enhance security, you can configure the time to be shorter. Using the CLI, you can change the length of time the command prompt remains idle before the FortiGate unit will log the administrator out. The range can be between 10 and 3600 seconds.
To set the logout time enter the following commands:
config system global
set admin-ssh-grace-time <number_of_seconds>
end
See Also
Security Precautions
Passwords
 
Disable admin services
Administrator lockout
Idle time-out
Administrative ports
Change the admin username and password
Segregated administrative roles