https://mp.weixin.qq.com/s/pfppxxWV9pOYxq4AU2iRqA 相比较其它的远程登陆工具,secureCRT还算比较好用。 远程登陆交换机与服务器时需要用到,在我们弱电vip群中,也有不少朋友经常讨论到,本期我们来看下如何使用secure CRT远程登陆交换机与服务器? 一、如何使用secure CRT连接交换机 连接并配置交换机有三步,console线连接交换机,然后使用远程登陆配置。 第一步: 就是用console线连接交换机与电脑,如下图: [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089342991[图片] 使用Console通信电缆连接交换机与PC,这个一般购买设备时是自带的,若PC电脑无串口,需要使用串口转usb口的转接线。 第二步:登陆终端软件 这个我们使用secure CRT,安装好后secureCRT后,我们就可以直接打开使用了。可以设置一个密码,也可以使用无密码登陆。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089342992[图片] 进入后,点击文件,快速连接。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089342993[图片] 新建连接后,弹出界面,选择“Serial”,为什么是serial口,serial口是串口,与交换机的连接方式一致。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089342994[图片] 在电脑的“设备管理器”里面看,Com口转USB线的驱动安装的是哪个Com口。安装的是哪个就选择哪个。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089342995[图片] 选择端口为Com5,可以在在“设备管理器”中查看,选择波特率为9600。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089342996[图片] 此时,就能使用secureCRT连上交换机了,输入正确的用户名密码就能对交换机进行各种命令的配置了。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089342997[图片] 这个就登陆成功,然后进行配置交换机就行了,连接是华为交换机的话,就使用华为的配置代码;连接的是锐捷交换机,就使用锐捷的配置代码。 二、如何使用Secure CRT连接服务器 远程登陆服务器,也可以使用secureCRT,与连接交换机稍微有些有不同,我们来看下。 打开界面,点击快速连接。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089342998[图片] 协议选择ssh2,填入主机名与相关的端口号,也就是服务器的外网ip地址。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089342999[图片] 输入服务器的用户名号密码。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089343000[图片] 然后就可以了。 [图片]https://jdc100.huawei.com/CommunityGatewayService/com.huawei.ipd.sppm.jdcforum:JDCCommunityUserService/CommunityUserService/user/attachment/v1/download?aid=2009292814089343001[图片] 就可以用命令对服务器进行相关配置了。 补充:secure CRT上面的各种协议是什么意思? Telnet协议:是TCP/IP协议族中的一员,是Internet远程登陆服务的标准协议和主要方式。由于它们在网络上用明文传送口令和数据,所以一般不适合企业使用远程登陆。  SSH:为建立在应用层和传输层基础上的安全协议。SSH 是眼下较可靠,专为远程登录会话和其它网络服务提供安全性的协议。SSH(Secure SHell)到眼下为止有两个不兼容的版本号——SSH1和SSH2。 Serial:串行连接,与交换机的连接方式一致。 Telnet/SSL:  是带有SSL的Telnet。SSL协议位于TCP/IP协议与各种应用层协议之间,为数据通讯提供安全支持。