603
ssh redirect listen-port
Use
ssh redirect listen-port
to set a listening port of SSH redirect.
Use
undo ssh redirect listen-port
to restore the default.
Syntax
ssh redirect listen-port
port-number
undo ssh redirect listen-port
Default
The SSH redirect listening port number is the absolute user line number plus 4000.
Views
AUX line view
TTY line view
Predefined user roles
network-admin
Parameters
port-number
: Specifies the number of the SSH redirect listening port, in the range of 4000 to 50000.
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 device redirects only SSH connection requests destined for the SSH redirect listening port.
The redirected SSH connection is terminated if the SSH redirect listening port for the connection is
modified.
Examples
# Set the SSH redirect listening port number to 5000 on TTY line 1.
<Sysname> system-view
[Sysname] line tty 1
[Sysname-line-tty1] ssh redirect listen-port 5000
Related commands
ssh redirect enable