SGS-6341-Series User Manual

Table Of Contents
4-5
4.2.2.2 SSH Server Configuration Task List
Command Explanation
Global Mode
ssh-server enable
no ssh-server enable
Enable SSH function on the switch; the no
command disables SSH function.
username <username> [privilege
<privilege>] [password [0 | 7]
<password>]
no username <username>
Configure the username and password of
SSH client software for logging on the
switch; the no command deletes the
username.
ssh-server timeout <timeout>
no ssh-server timeout
Configure timeout value for SSH
authentication; the no 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 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 command stops
displaying SSH debug information on the
SSH client side.
show crypto key
Show the secret key of SSH.
rypto key clear rsa
Clear the secret key of SSH.
4.2.2.3 Example of SSH Server Configuration
Example 1:
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
User’s Manual of SGS-6341 series