2 ssh server configuration task list, 3 typical ssh server configuration – PLANET WGSW-50040 User Manual

Page 42

Advertising
background image

4-4

4.2.2.2 SSH Server Configuration Task List

SSH Server Configuration

Command

Explanation

Global Mode

ssh-server enable

no ssh-server enable

Enable SSH function on the switch; the “no

ssh-server enable” command disables SSH

function.

ssh-user <user-name> password {0 | 7}

<password>

no ssh-user <user-name>

Configure the username and password of SSH

client software for logging on the switch; the “no

ssh-user <user-name>” command deletes the

username.

ssh-server timeout <timeout>

no ssh-server timeout

Configure timeout value for SSH authentication;

the “no ssh-server timeout” command restores

the default timeout value for SSH authentication.

ssh-server authentication-retires

<authentication-retires>

no ssh-server authentication-retries

Configure the number of times for retrying SSH

authentication; the “no ssh-server

authentication-retries” command restores the

default number of times for retrying SSH

authentication.

ssh-server host-key create rsa modulus

<moduls>

Generate the new RSA host key on the SSH

server.

Admin Mode

terminal monitor

terminal no monitor

Display SSH debug information on the SSH client

side; the “no terminal monitor” command stops

displaying SSH debug information on the SSH

client side.

4.2.2.3 Typical SSH Server Configuration

Example1:

Requirement: Enable SSH server on the switch, and run SSH2.0 client software such as Secure shell client or

putty on the terminal. Log on the switch by using the username and password from the client.

Configure the IP address, add SSH user and enable SSH service on the switch. SSH2.0 client can log on the

switch by using the username and password to configure the switch.

Switch(config)#ssh-server enable

Switch(config)#interface vlan 1

Switch(Config-if-Vlan1)#ip address 100.100.100.200 255.255.255.0

Advertising