# 以登錄用戶界面的認證方式爲密碼認證,密碼爲Huawei@123爲例,配置如下。
<HUAWEI> system-view [HUAWEI] user-interface console 0 [HUAWEI-ui-console0] authentication-mode password [HUAWEI-ui-console0] set authentication password cipher Huawei@123 [HUAWEI-ui-console0] return<HUAWEI> save # 以登錄用戶界面的認證方式爲AAA認證,用戶名爲admin123,密碼爲Huawei@123爲例,配置如下。 <HUAWEI> system-view [HUAWEI] user-interface console 0 [HUAWEI-ui-console0] authentication-mode aaa [HUAWEI-ui-console0] quit [HUAWEI] aaa [HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123 [HUAWEI-aaa] local-user admin123 service-type terminal [HUAWEI-aaa] return <HUAWEI> save 配置vty [HUAWEI]user-interface vty 0 4 (進入vty用戶界面) [HUAWEI-ui-vty0-4]authentication-mode ? none:不驗證 password:密碼驗證 aaa:AAA驗證 (設置密碼驗證的密碼) [HUAWEI-ui-vty0-4]set authentication passowrd{cipher\simple} cipher:加密的 simple:簡單的 (設置AAA驗證) [HUAWEI-ui-vty0-4]authentication-mode aaa 進入系統試圖 [HUAWEI-ui-vty0-4]aaa //進入AAA視圖 [HUAWEI-aaa]local-user [HUAWEI-aaa]local-user service-type ssh 配置接入類型爲SSH [HUAWEI]rsa local-key-pair create 產生本地rsa祕鑰,進行SSH時配置