平時維護交換機,會需要修改遠程密碼的場景。可能是之前同事配置的,現在需要更換。
今天博主在修改時,遇到一個報錯,分享一個經驗,避免少走彎路。
一、先說解決辦法和思路
修改密碼的命令要使用這幾條
登錄交換機進入AAA模式輸入:
aaa local-user admin password irreversible-cipher 密碼
提示輸入舊密碼: Please enter old password:
完成后會有兩端提示:
Info: The old password is checked successfully and new password can meet the requirements. Info: After changing the rights (including the password, access type, FTP directory, HTTP directory, and level) of a local user, the rights of users
學會使用官網的在線協助查詢
二、問題重現
使用TELNET遠程登錄交換機
進入AAA模式修改密碼,提示報錯
【Error: The user of this service-type is not allowed to use a reversible encryption algorithm.】
百度翻譯:不允許此服務類型的用戶使用可逆加密
三、解決過程
搞不懂,於是前往官網協助。發現沒有此問題
點官網的在線客服,點擊右下角【聯系我們】【智能客服】,地址:https://e.huawei.com/cn/service-hotline-query
在客服對話框輸入問題,獲取到一個信息
配置local-user 用戶名 password cipher報錯--------此時需要把cipher換成irreversible-cipher。
於是重新連接交換機修改密碼,換個命令
OK,成功修改。
那么疑問來了,為什么剛才那條命令不可以,而后面這條可以了?
四、irreversible-cipher與cipher區別
百度了一下,有大牛回復了