一、tenlen方式
1.直接配置密碼
[AR1]user-interface vty 0 4 (進入vty)
AR1-ui-vty0-4]authentication-mode password (設定連接方式)
Please configure the login password (maximum length 16):hw123(設定密碼)
[AR1-ui-vty0-4]user privilege level 15(設定級別)
2.用戶名方式(aaa)
[AR1]user-interface vty 0 4 (進入vty)
[AR1-ui-vty0-4]authentication-mode aaa
[AR1-ui-vty0-4]quit
[AR1]aaa
[AR1-aaa]local-user huawe privilege level 15 password cipher hw123(配置用戶名,級別,密碼)
[AR1-aaa]local-user huawe service-type telnet(配置登錄方式默認telent)
忘記遠程登錄密碼后從console口登錄進去改密碼
[AR1-aaa]local-user huawe password cipher hw1234
二、SSH方式
[AR1]user-interface vty 0 4 (進入vty)
[AR1-ui-vty0-4]authentication-mode aaa
[AR1-ui-vty0-4]protocol inbound ssh (ssh2登錄)
[AR1-ui-vty0-4]quit
[AR1]aaa
[AR1-aaa]local-user huawe privilege level 15 password cipher hw123(配置用戶名,級別,密碼)
[AR1-aaa]local-user huawe service-type ssh(改變登錄方式)
[AR1-aaa]quit
[AR1]stelnet server enable (開啟SSH)
[AR1]rsa local-key-pair create (創建秘鑰對)
Confirm to replace them? (y/n)[n]:y(確認創建)
Input the bits in the modulus[default = 512]:2048(秘鑰對大小)
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/183733.html
標籤:python
上一篇:RFID環衛車輛管理系統應用方案
下一篇:stm32--位帶基本操作
