set ip ssh

Changes the TCP port number on which a DWS-1008 switch listens for Secure Shell (SSH) management traffic.

Caution: If you change the SSH port number from an SSH session, MSS immediately ends the session. To open a new management session, you must configure the SSH client to use the new TCP port number.

Syntax: set ip ssh port port-num

port-numTCP port number.

Defaults: The default SSH port number is 22.

Access: Enabled.

Examples: The following command changes the SSH port number on a DWS-1008 switch to 6000:

DWS-1008# set ip ssh port 6000 success: change accepted.

set ip ssh server

Disables or reenables the SSH server on a DWS-1008 switch.

Caution: If you disable the SSH server, SSH access to the switch is also disabled.

Syntax: set ip ssh server {enable disable}

enable Enables the SSH server.

disable Disables the SSH server.

Defaults: The SSH server is enabled by default.

Access: Enabled.

Usage: SSH requires an SSH authentication key.You can generate one or allow MSS to generate one. The first time an SSH client attempts to access the SSH server on a DWS-1008 switch, the switch automatically generates a 1024-byte SSH key.

If you want to use a 2048-byte key instead, use the crypto generate key ssh 2048 command to generate one.

The maximum number of SSH sessions supported on a switch is eight. If Telnet is also enabled, the switch can have up to eight Telnet or SSH sessions, in any combination, and one Console session.

D-Link DWS-1008 CLI Manual

131

Page 134
Image 134
D-Link dws-1008 manual Set ip ssh, Disables or reenables the SSH server on a DWS-1008 switch