exec-timeout

This topic explains the command that sets how long an idle SSH session stays open before the switch logs the user out.

Syntax

exec-timeout <1-60>

Parameter

<1-60>: Set the SSH session time-out period in minutes, from 1 to 60 minutes.

Default

5 minutes.

Mode

Line Configuration

Usage

Use this command to set the SSH session time-out period in minutes. If a user is logged in to the CLI, but does not take action, the user is automatically logged out from the CLI when the time-out period is reached.

Example

This example shows how to set the SSH session time-out period to 25 minutes:

CODE
Switch(config)# line ssh
Switch(config-line)# exec-timeout 25