2021年5月10日 星期一

cisco switch ssh login set

 


username   <switchname>


ip domain-name ctocio.com.cn



crypto key generate rsa 


How many bits in the modulus [512]: 1024  

註:選擇加密位數,cisco推薦使用1024 


 username <username> secret 5 <password>

Ex:  username john secret 5   123456



ipssh time-out  120

//設置ssh時間為120秒 


ip ssh authentication 4  

//設置ssh認證重複次數為4,可以在0-5之間選擇





line vty 0 4 

//進入vty模式


transport input ssh  

//設置vty的登錄模式為ssh,默認情況下是all即允許所有登錄


login local

//使用本地帳戶




沒有留言:

張貼留言