cisco ssh本地認證登陸配置

router(config)#hostname RA

RA(config)#ip domain-name cisco.com

RA(config)#enable secret 123

RA(config)#interface fastethernet 0/0

RA(config-if)#ip address 192.168.1.1 255.255.255.0

RA(config-if)#no shutdown

RA(config-if)#exit

RA(config)#crypto key gererate rsa general-keys modulus 1024

/*

可選配置

RA(config)#ip ssh time-out 120

RA(config)#ip ssh auth 3

*/

RA(config)#username admin privilege 15 password 123

RA(config)#line vty 0 4

RA(config-line)#password 123

RA(config-line)#login local

RA(config-line)#exit

 

也可以使用本地AAA認證來驗證用戶:即將login local 去掉,在全局配置模式下加上 aaa new-model

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章