Cisco Packet Tracer 思科模拟器SSH配置

一、配置主机名

二、在路由器上创建网络IP域名(不创建域名的话ssh服务不能被启用)

R1(config)#ip domain-name zym.com

三、创建RSA加密秘钥

R1(config)#crypto key generate rsa   创建加密rsa秘钥
The name for the keys will be: R1.zym.com
Choose the size of the key modulus in the range of 360 to 2048 for your
  General Purpose Keys. Choosing a key modulus greater than 512 may take
  a few minutes.
​
How many bits in the modulus [512]: 1024 秘钥长度建议为1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

四、创建本地用户,以及登录vty的方式

R1(config)#username ZYM password 123456  创建本地用户
​
R1(config)#line v 0 15   进入vty
​
R1(config-line)#transport input ssh   设置vty的登录方式为ssh 
​
R1(config-line)#login local  本地登录 
​
R1(config)#enable secret 123456  为了保证路由器的设备安全,设一个设备的加密密码

五、验证ssh是否生效

R1#ssh -l ZYM 10.12.60.254  登录模式+距离+域名+地址

六、在路由器上配置ssh v2,超时时间设置为20s,重试次数为2次

R1(config)#ip ssh v 2   设置ssh版本2
​
R1(config)#ip ssh time-out 20  设置ssh超时时间
​
R1(config)#ip ssh authentication-retries 2  设置重试次数

七、检查配置

R1(config)#do show ip ssh
SSH Enabled - version 2.0
Authentication timeout: 20 secs; Authentication retries: 2

  • 7
    点赞
  • 28
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Super鸣_

谢谢ovo

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值