设备:H3C 5120 V7
需求:配置登陆密码,可以使用Telnet 及SSH 登陆
1. Telnet 登陆配置
配置如下:
[H3C 5120]user-interface vty 0 4
[H3C 5120-ui-vty0-4]authentication-mode password
[H3C 5120-ui-vty0-4]set authentication password simple Abcd@123
[H3C 5120-ui-vty0-4]user privilege level 3
[H3C 5120-ui-vty0-4]quit
[H3C 5120]telnet server enable
2. SSH 登陆配置
[H3C 5120]user-interface vty 0 4
[H3C 5120-ui-vty0-4]authentication-mode scheme
[H3C 5120-ui-vty0-4]protocol inbound ssh
[H3C 5120-ui-vty0-4]set authentication password simple Abcd@123
[H3C 5120-ui-vty0-4]user privilege level 3
[H3C 5120-ui-vty0-4]quit
[H3C 5120]local-user admin
[H3C 5120-luser-admin]password simple Abcd@123
[H3C 5120-luser-admin]service-type ssh
[H3C 5120-luser-admin]authorization-attribute idle-cut 5
[H3C 5120-luser-admin]authorization-attribute level 3
[H3C 5120-luser-admin]quit
[H3C 5120]ssh server enable