604
ssh redirect timeout
Use
ssh redirect timeout
to set the idle-timeout timer for the redirected SSH connection.
Use
undo ssh redirect timeout
to restore the default.
Syntax
ssh redirect timeout
time
undo ssh redirect timeout
Default
The idle-timeout timer is 360 seconds.
Views
AUX line view
TTY line view
Predefined user roles
network-admin
Parameters
time
: Specifies the idle-timeout timer in seconds. The value range is 0 to 86400. To disable the
timeout mechanism, set the timeout timer to 0.
Usage guidelines
The following matrix shows the command and hardware compatibility:
Hardware
Command compatibility
MSR954 (JH296A/JH297A/JH298A/JH299A/JH373A)
No
MSR958 (JH300A/JH301A)
No
MSR1002-4/1003-8S
Yes
MSR2003
Yes
MSR2004-24/2004-48
Yes
MSR3012/3024/3044/3064
No
MSR4060/4080
No
The redirected SSH connection is idle when no data is received from the SSH client. This command
sets the maximum length of time that the redirected connection can be idle before it is terminated.
Examples
# Set the idle-timeout timer to 200 seconds for the redirected SSH connection.
<Sysname> system-view
[Sysname] line tty 1
[Sysname-line-tty1] ssh redirect timeout 200
Related commands
ssh redirect enable
ssh server acl
Use
ssh server acl
to specify an ACL to control IPv4 SSH connections.