Configuring telnet, Configuring ssh – H3C Technologies H3C Intelligent Management Center User Manual

Page 27

Advertising
background image

17

[Hub] snmp-agent community read public

[Hub] snmp-agent community write private

For more information about the SNMP configuration, see the configuration guide of your device.

Configuring Telnet

Telnet supports password authentication and AAA. This example uses AAA.
# Add a local user named admin, authorize the user to use the Telnet service, set the password to imc in

cipher text, and configure the user's privilege level as 3.

<Hub> system-view

[Hub] local-user admin

[Hub-luser-admin] service-type telnet

[Hub-luser-admin] password cipher imc

[Hub-luser-admin] authorization-attribute level 3

[Hub-luser-admin] quit

# Enable the Telnet service, enable scheme authentication for user lines VTY 0 through VTY 4, enable the
user lines to support Telnet, and authorizes Telnet users to access level 3 commands.

[Hub] telnet server enable

[Hub] user-interface vty 0 4

[Hub-ui-vty0-4] authentication-mode scheme

[Hub-ui-vty0-4] protocol inbound telnet

[Hub-ui-vty0-4] user privilege level 3

For more information about the Telnet configuration, see the configuration guide of your device.

Configuring SSH

SSH supports password authentication and certificate authentication. This example uses AAA.
# Add a local user named admin, authorize the user to use the SSH service, set the password to imc in
cipher text, and configure the user's privilege level as 3.

<Hub> system-view

[Hub] local-user admin

[Hub-luser-admin] service-type ssh

[Hub-luser-admin] password cipher imc

[Hub-luser-admin] authorization-attribute level 3

[Hub-luser-admin] quit

# Create a local DSA key pair, enable the SSH service, enable scheme authentication for user lines VTY
0 through VTY 4, enable the user lines to support SSH, and authorizes SSH users to access level 3

commands.

[Hub] public-key local create dsa

[Hub] ssh server enable

[Hub] user-interface vty 0 4

[Hub-ui-vty0-4] authentication-mode scheme

[Hub-ui-vty0-4] protocol inbound ssh

[Hub-ui-vty0-4] user privilege level 3

For more information about the SSH configuration, see the configuration guide of your device.

Advertising