在思科路由器上配置SSH登录

用户那里对网络安全性进行检查,要求对核心设备采用SSH登录,之前设备采用telnet登录,用户名和密码明文传输,不符合安全性检查要求。
其实SSH登录配置很简单,主要分以下几步:


1、配置域名
SD_Core_R7600(config)#ip domain-name SDCore


2、生成SSH Key
SD_Core_R7600(config)#crypto key generate rsa
The name for the keys will be: SD_Core_R7600.SDCore
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
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
说明:key的大小根据情况定义


3、启用aaa new-model
SD_Core_R7600(config)#aaa new-model


4、配置SSH登录时的用户名和密码
SD_Core_R7600(config)#username cisco secret cisc0@123


5、在line上应用SSH登录
SD_Core_R7600(config)#line vty 0 4
SD_Core_R7600(config-line)#transport input ssh
SD_Core_R7600(config-line)#exit
SD_Core_R7600(config)#exit


6、其它可选配置参数
SD_Core_R7600(config)#ip ssh verions 2 设置SSH的版本
SD_Core_R7600(config)#ip ssh time-out 120 设置SSH的超时时间
SD_Core_R7600(config)#ip ssh authentication-retries 3 设置SSH重认证次数

说明:如果还需要进行更进一步的配置,可以参照思科官方文档。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

架构师之路魂

你的鼓励将是我创作的最大动力

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

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

打赏作者

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

抵扣说明:

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

余额充值