---------IOS系統--------
enable password ****
conf t
ip domain-name cisco.com ////域名必須寫
aaa new-model
crypto key generate rsa
username cisco password cisco
line vty 0 4
transport input ssh
line vty 5 15
transport input ssh
ip ssh time-out 60
ip ssh authentication-retries 1 //重認證次數
ip ssh version 2
do wr
show ip ssh //查看ssh版本 加密等信息
---------NXOS系統---------
feature ssh ////開啓SSH功能即可
ssh [email protected] //N9K用ssh登陸命令
password:
---------IOS-XR系統--------------
show install active | i k9 ////先查看是否支持ssk
disk0:hfr-k9sec-3.6.0 // //有這個文件證明支持
crypto key generate dsa
ssh service v2
ssh service vrf default
commit