交換機ssh遠程登錄設置:
1、設定一個非默認的hostname
Switch(config)#hostname cisco
2、配置域名:
cisco(config)#ip domain-name test
4、指定加密長度:
cisco(config)#crypto key generate rsa
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
5、將vty線路下的登錄方式改為 ssh
cisco(config)#line vty 0 4
cisco(config-line)#transport in ssh
收起