路由器開啟ssh實現遠端管理
阿新 • • 發佈:2021-06-25
ssh【secure shell】:安全的遠端控制協議,埠號 tcp 22
特點:傳輸資料進行加密傳輸
aaa:authentication authority account
認證 授權 審計
網路拓撲圖:
R1上配置:
<Huawei>system-view [Huawei]undo info-center enable [Huawei]sysname R1 [R1]aaa #進入aaa [R1-aaa]local-user kang password cipher kang@123 privilege level 3idle-timeout 10 #建立使用者kang,並設定密文密碼kang@123,許可權等級為level 3,終端超時為10分鐘自動登出 [R1-aaa]local-user kang service-type ssh #為使用者kang設定服務型別為ssh [R1-aaa]quit #退出 [R1]user-interface vty 0 4 #進入vty 0 4,允許5個虛擬終端連線 [R1-ui-vty0-4]authentication-mode aaa #認證模式為aaa [R1-ui-vty0-4]protocol inbound ssh #協議為ssh [R1-ui-vty0-4]quit #退出 [R1]stelnet server enable #開啟ssh服務 [R1]interface GigabitEthernet 0/0/0 #進入G0/0/0 [R1-GigabitEthernet0/0/0]ip address 10.10.10.2 24 #配置ip
Cloud 2上配置:
配置完成後可以在真機中拿secureCRT工具進行ssh遠端登入管理: