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

用户那里对网络安全性进行检查,要求对核心设备采用SSH登陆,以前设备采用telnet登陆,用户名和密码明文传输,不符合安全性检查要求。
其实SSH登陆配置很简单,主要分如下几步:
一、配置域名
SD_Core_R7600(config)#ip domain-name SDCore
二、生成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的大小根据状况定义
三、启用aaa new-model
SD_Core_R7600(config)#aaa new-model
四、配置SSH登陆时的用户名和密码
SD_Core_R7600(config)#username cisco secret cisc0@123
五、在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
六、其它可选配置参数
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重认证次数网络

说明:若是还须要进行更进一步的配置,能够参照思科官方文档。dom

相关文章
相关标签/搜索