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 3 idle-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遠程登錄管理: