您好,欢迎访问一九零五行业门户网

cisco路由器SSH登陆高级配置

cisco 路由器 ssh 登陆 高级 配置 enable www.2cto.com configure terminal enable secret cisco service password-encryption 启用密码加密服务 aaa new-model aaa authentication login aaa_local local username sunchao secret cicso username cocoe sec
cisco路由器ssh登陆高级配置
enable  www.2cto.com  
configure terminal
enable secret cisco
service password-encryption 启用密码加密服务
aaa new-model
aaa authentication login aaa_local local
username sunchao secret  cicso
username cocoe  secret cisco
security passwords min-length 5 配置密码最小长度
hostname r1
ip domain-name sunchao.com
crypto key generate rsa
access-list 10 remark hosts allowed to ssh
access-list 10 permit host 192.168.1.1
access-list 10 permit host 192.168.1.2
   www.2cto.com  
r2(config)#line vty 0 4
r2(config-line)#logging synchronous
r2(config-line)#exec-timeout 5 30
r2(config-line)#login authentication aaa_local 
r2(config-line)#transport input ssh 
r2(config-line)#access-class 10 in
r2(config-line)#end
ip ssh version 2
ip ssh timeout 30 (设置最大空闲定时器)
ip ssh authentication-retries 2 (最大失败尝试次数)
r1登陆 
r1#ssh -l sunchao 192.168.1.1
open
password:
其它类似信息

推荐信息