1、网络拓扑图。(模拟器中的模拟终端无ssh功能,这里用路由器代替。)
2、//配置router0的接口ip。configure terminalinterface gigabitEthernet 2/1no switchportip address 10.1.1.1 255.255.255.0no shutdownexit//在全局模式下验证接口配置。do show interfaces gigabitEthernet 2/1
3、//配置router1的接口ip。完成该配置后可以直接ping通router0configure terminalinterface gigabitEthernet 2/1no switchportip address 10.1.1.2 255.255.255.0no shutdownexit//在特权模式下验证接口配置。show interfaces gigabitEthernet 2/1
4、//配置router0的ssh登录。router0configure terminalhostnam髫潋啜缅e r0000enable secret 123456aaa new-modelusername r0r0 secret 123465ip domain-name qqqqcrypto key generate rsaline vty 0 4transport input ssh//在特权模式下查看ssh配置。show running-config
5、//在router1上验证router0的ssh。ssh -l r0r0 10.1.1.1显示登录成功