远程管理交换机(telnet ssh)

1、telnet

是应用层协议,基于传输层TCP,默认端口号:23,采用的是明文密码方式,不是很安全,一般用于内网管理。

2、ssh

是应用层协议,基于传输层TCP,默认端口号22,采用的是密文密码方式,相对来讲比较安全,经常用于跨越互联网管理,也常用于远程管理Linux操作系统

3、思路

  • 既然是通过网络的方式进行管理设备,设备就必须配置IP地址,由于交换机上的接口都是交换接口,是不允许配置IP地址,直接为交换机的虚接口配置IP地址,默认情况下交换机的默认虚接口就是vlan1接口

Switch(config)#int vlan1
Switch(config-if)#ip address 192.168.100.100 255.255.255.0
Switch(config-if)#no shutdown

  • 配备设备的连接终端并直接设置密码,应用

Switch#conf t
Switch(config)#line vty 0 4
Switch(config-line)#password woniu123
Switch(config-line)#login #表示直接使用密码登录

  • 创建连接用户名密码,配置设备的连接终端并应用

Switch#conf t
Switch(config)#username LVbo password 520520
Switch(config)#line vty 0 4
Switch(config-line)#login local #表示使用用户名密码登录

ssh

Switch(config)#hostname SW1
SW1(config)#ip domain-name LVbo.com
SW1(config)#crypto key generate rsa
The name for the keys will be: SW1.LVbo.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]:
% Generating 512 bit RSA keys, keys will be non-exportable…[OK]
SW1(config)#ip ssh time-out 120
SW1(config)#ip ssh aut
SW1(config)#ip ssh authentication-retries 5
SW1(config)#username LVbo password 520520
SW1(config)#line vty 0 4
SW1(config-line)#login local

4、设置特权模式密码

SW1(config)#enable password 520520
SW1(config)#enable secret 1314
SW1#show running-config #查看当前配置文件命令

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
使用Xshell进行SSH远程管理交换机的步骤如下: 1. 首先,确保你已经安装了Xshell这个SSH客户端软件。Xshell可以作为Telnet、Rlogin、SSH、SFTP和Serial等协议的安全终端模拟软件,可以帮助你轻松地管理远程主机。 2. 在物理机上添加一块回环网卡。回环网卡的地址必须与eNSP中的设备处于同一网段。你可以参考相关教程来进行回环网卡的添加。 3. 在交换机上配置地址和认证模式,以便物理机可以远程访问交换机。你可以在交换机命令行界面上输入以下配置命令: ``` system-view interface Vlanif1 ip address 1.0.0.111 24 user-interface vty0 4 authentication-mode password set authentication password cipher 1234.com user privilege level 15 ``` 这些命令将为交换机配置一个VLAN接口的IP地址,并启用基于密码的认证模式。 4. 打开Xshell软件,创建一个新的会话连接。 5. 在新建的会话连接中,选择SSH协议,并输入交换机的IP地址和端口号。 6. 接下来,选择认证方式,输入交换机的用户名和密码。 7. 点击连接按钮,Xshell会自动与交换机建立SSH连接。一旦连接成功,你就可以通过Xshell来管理和配置交换机了。 请注意,在配置交换机之前,确保你已经正确配置了回环网卡和交换机的地址和认证模式。这样,你就可以使用Xshell进行SSH远程管理交换机了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Xshell Xftp ssh远程管理工具](https://download.csdn.net/download/qq_36820328/10522391)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [物理机用Xshell连接eNSP中交换机/路由器](https://blog.csdn.net/Virgo626249038/article/details/130061068)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值