cisco配置ssh登陆
2012-08-29 23:18
281 查看
cisco SSH配置
1. 配置hostname和ip domain-name
Router#configure terminal
Router(config)#hostname R2 //配置ssh的时候路由器的名字不能为router
R2(config)#ip domain-name puzzled.com //配置SSH必需
R2(config)#username puzzled password puzzled
或 username puzzled privilege 15 password 7 puzzled
R2(config)#line vty 0 4
R2(config-line)#transport input ssh //只允许用SSH登录
2. 配置SSH服务:
R2(config)#crypto key generate rsa
如果要把超时限定改为180秒,则应该用:
R2(config)# ip ssh time-out 180
R2(config)#ip ssh authentication 4
//设置ssh认证重复次数为4,可以在0-5之间选择
1. 配置hostname和ip domain-name
Router#configure terminal
Router(config)#hostname R2 //配置ssh的时候路由器的名字不能为router
R2(config)#ip domain-name puzzled.com //配置SSH必需
R2(config)#username puzzled password puzzled
或 username puzzled privilege 15 password 7 puzzled
R2(config)#line vty 0 4
R2(config-line)#transport input ssh //只允许用SSH登录
2. 配置SSH服务:
R2(config)#crypto key generate rsa
如果要把超时限定改为180秒,则应该用:
R2(config)# ip ssh time-out 180
R2(config)#ip ssh authentication 4
//设置ssh认证重复次数为4,可以在0-5之间选择
相关文章推荐
- cisco路由器SSH登陆基本配置
- cisco路由器SSH登陆高级配置
- CiSCO 交换机配置 SSH 登陆
- kali中ssh远程登陆及配置
- 避免Cisco设备被暴力破解登陆TELNET/SSH...
- Linux ssh免密钥登陆配置
- Linux ssh免密钥登陆配置
- Ubuntu配置ssh服务方便远程登陆
- centos配置ssh无密码登陆
- 配置SSH无密钥登陆
- ssh无密钥登陆的简单配置
- SSH免密码登陆配置
- SSH免密码登陆配置
- ubuntu配置ssh免密码登陆
- ssh免密码登陆配置及注意事项
- Linux SSH登陆配置文件修改
- CentOS7下配置SSH免密钥登陆
- 学习Hadoop第五课(配置ssh免密码登陆配置和ssh原理)
- Jenkins进阶系列之——09配置Linux系统ssh免密码登陆
- 集群内部的SSH密钥认证登陆机制配置(免密登陆)