Cisco switch +h3c switch SSH configuration (Cisco shutdown Telnet)
Cisco Switches
Enter Switch configuration mode:
A) coresw#configure Terminal
Configure Switch Name:
A) coresw (config) #hostname coresw(optional configuration).
configuration domain-name:
A) coresw (config) #ip domain-namexxxxx.com(the name depends on your requirements).
Configure the logged on user and password (if a local user can not create it).
A) coresw (config) #username testpassword 0 test(password type optional).
To configure the number of virtual endpoints that can be connected:
A) coresw (config) #line vty 0 4
b) coresw (config-line) #login Local
SSH Service configuration:
A) coresw (config) #crypto keygenerate RSA
The name for the keys would be:CoreSW.xxxxxx.com
Choose the size of the key modulus inthe range of 4096 for your
General Purpose Keys. Choosing a keymodulus greater than
A few minutes.
How many bits in the modulus [512]:coresw.xxxxx.com
% A decimal number between and4096.
How to many bits in the modulus [+]: (Here I choose the default, that is, the direct return, you can also define their own.) )
% generating-bit RSA keys, keyswill be non-exportable ...
[OK] (Elapsed time was 2 seconds) .
Save the configuration.
A) coresw#copy running-configstartup-config
Configuration SSH timeout time.
A) coresw (config) #ip ssh time-out120
Configure the number of repeat logins.
A) coresw (config) #ip sshauthentication-retries 5
Configuration SSH version
A) coresw (config) #ip SSH version 2
. Test SSH mode to connect the switch.
=============================== the configuration is complete here ================================
H3C Switch
Build RSA and DSA secret key pairs
a) [Hjsw-5500-10]public-key localcreate RSA(enter Y )
b) [Hjsw-5500-10]public-key localcreate DSA(direct carriage return)
Set up user login authentication and interface protocol
a) [hjsw-5500-10]user-interfacevty 0 4
b) [Hjsw-5500-10-ui-vty0-4]authentication-modescheme
c) [Hjsw-5500-10-ui-vty0-4]protocolinbound SSH
User settings
A) If there is a relevant user can not create a new user.
b) Create a new user command as follows:
c) [Hjsw-5500-10]local-user user-name
d) [Hjsw-5500-10-luser-xxxxx]authorization-attributelevel 3(User level)
e) [hjsw-5500-10-luser-xxxxx]service-typessh (service type)
Specify the user authentication method as password
a) [hjsw-5500-10]ssh userwangchuyuan service-type all authentication-type password
=============================== the configuration is complete here ================================
This article is from the "Heaven" blog, please be sure to keep this source http://chudi.blog.51cto.com/7542593/1787633
CISCO+H3C Switch SSH Configuration instance