首页 > Web开发 > 详细

telnet和ssh登陆

时间:2020-05-10 19:44:42      阅读:55      评论:0      收藏:0      [点我收藏+]

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

 

telnet和ssh登陆

原文:https://www.cnblogs.com/miaocongcong/p/12864233.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!