telnet登陆方式:
开启 虚拟登陆线路(默认开启)
Switch(config)#line vty 0 4
采用本能地登陆方式
Switch(config-line)#login local
配置本地登陆用户名密码和登陆进去的权限为15
Switch(config)#username cisco privilege 15 password ccie1919
ssh登陆方式:
创建一个域名
Switch(config)#ip domain-name CISCO
指定加密模数为1024
Switch(config)#crypto key generate rsa modulus 1024
创建登陆用户名密码和用户等级
Switch(config)#username cisco privilege 15 password ccie1919
开启虚拟线路下ssh登陆,all表示开启所有协议登陆方式,如果不用all,用ssh,那么telnet无法再使用。远程登陆一般建议使用ssh,telnet为明文传输不安全。
Switch(config)#line vty 0 4
Switch(config-line)#transport input ssh/all
原文:https://www.cnblogs.com/miaocongcong/p/12864233.html