cisco 路由器 SSH 登陸 高級(jí) 配置 enable www.2cto.com configure terminal enable secret cisco service password-encryption 啟用密碼加密服務(wù) aaa new-model aaa authentication login AAA_LOCAL local username sunchao secret cicso username cocoe sec
cisco路由器SSH登陸高級(jí)配置
enable www.2cto.com
configure terminal
enable secret cisco
service password-encryption 啟用密碼加密服務(wù)
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 (設(shè)置最大空閑定時(shí)器)
ip ssh authentication-retries 2 (最大失敗嘗試次數(shù))
R1登陸
R1#ssh -l sunchao 192.168.1.1
Open
Password:
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com