User Manual

disable : SSH server is disable
[Parameter]
port : <1-65535>
Listening port of the SSH server (if omitted: 22)
[Initial value]
ssh-server disable
[Input mode]
global configuration mode
[Description]
Enables the SSH server. You can also specify the listening TCP port number.
In order to enable the SSH server, the host key must be created in advance (ssh-server host key generate).
If this command is executed with the "no" syntax, disable the SSH server.
[Note]
In order to log in from the SSH client, the user name and password must be registered in advance (username).
[Example]
Start the SSH server with 12345 as the listening port number.
SWP2#ssh-server host key generate
SWP2#configure terminal
SWP2(config)#ssh-server enable 12345
4.16.2 Show SSH server settings
[Syntax]
show ssh-server
[Input mode]
priviledged EXEC mode
[Description]
Shows the settings of the SSH server.
The following items are shown.
SSH server function enabled/disabled status
Listening port number
Whether SSH server host key exists
VLAN interface permitted to access the SSH server
Filter that controls access to the SSH server
[Example]
Show the settings of the SSH server.
SWP2#show ssh-server
Service:Enable
Port:23
Hostkey:Generated
Management interface(vlan): 1
Interface(vlan):1, 2, 3
Access:
deny 192.168.100.5
permit 192.168.100.0/24
4.16.3 Set host that can access the SSH server
[Syntax]
ssh-server interface ifname
no ssh-server interface ifname
Command Reference | Maintenance and operation functions | 75