# 以登錄用戶界面的認證方式為密碼認證,密碼為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時配置免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。