思科ssh配置实验
1、网络拓扑图。(模拟器中的模拟终端无ssh功能,这里用路由器代替。)

2、//配置router0的接口ip。
configure terminal
interface gigabitEthernet 2/1
no switchport
ip address 10.1.1.1 255.255.255.0
no shutdown
exit
//在全局模式下验证接口配置。
do show interfaces gigabitEthernet 2/1

3、//配置router1的接口ip。完成该配置后可以直接ping通router0
configure terminal
interface gigabitEthernet 2/1
no switchport
ip address 10.1.1.2 255.255.255.0
no shutdown
exit
//在特权模式下验证接口配置。
show interfaces gigabitEthernet 2/1

4、//配置router0的ssh登录。
router0
configure terminal
hostname r0000
enable secret 123456
aaa new-model
username r0r0 secret 123465
ip domain-name qqqq
crypto key generate rsa
line vty 0 4
transport input ssh
//在特权模式下查看ssh配置。
show running-config



5、//在router1上验证router0的ssh。
ssh -l r0r0 10.1.1.1
显示登录成功

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:148
阅读量:24
阅读量:28
阅读量:89
阅读量:89