零、開啟服務
1 [H3C]ssh server enable 2 [H3C]telnet server enable
一、使用密碼登錄
1 [H3C]user-interface vty 0 4 2 [H3C-ui-vty0-4]authentication-mode password 3 [H3C-ui-vty0-4]set authentication password simple huanu //simple明文cipher密文 4 [H3C-ui-vty0-4]user privilege level 3
二、Telnet登錄
1 [H3C]user-interface vty 0 4 2 [H3C-ui-vty0-4]authentication-mode scheme 3 [H3C]local-user huanu 4 [H3C-user-huanu]password simple huanu 5 [H3C-user-huanu]service-type telnet level 3
三、console口密碼登錄
1 [H3C]user-interface aux 0 2 [H3C-ui-aux0] authentication-mode password 3 [H3C-ui-aux0] set authentication password simple huanu 4 [H3C-ui-aux0] user privilege level 3
四、console口本地用戶登錄
1 [H3C]user-interface aux 0 2 [H3C-ui-aux0] authentication-mode scheme 3 [H3C]local-user huanu 4 [H3C-user-huanu]password simple huanu 5 [H3C-user-huanu]service-type telnet level 3
五、ssh登錄
1 [H3C]user-interface vty 0 4 2 [H3C-ui-vty0-4]authentication-mode scheme 3 [H3C-ui-vty0-4]privilege inbound ssh 4 [H3C-ui-vty0-4]quit 5 [H3C]local-user huanu 6 [H3C-user-huanu]password simple huanu 7 [H3C-user-huanu]service-type ssh 8 [H3C-user-huanu]authorization-attribute level 3