Windows ssh登录eNSP交换机

1. Cloud IO配置

在这里插入图片描述

1.1 创建UDP端口

选择绑定信息:UDP
点击增加

在这里插入图片描述

1.2 创建本地连接

选择绑定信息:本地连接
点击增加

在这里插入图片描述

1.3 端口映射设置

选择入端口编号和出端口编号,勾选双向通道,点击增加

在这里插入图片描述

2. 交换机配置

2.1 配置vlanif

<Huawei>system-view 
[Huawei]sysname SWA
[SWA]interface Vlanif 1
[SWA-Vlanif1]ip address 192.168.83.135 24
[SWA-Vlanif1]q

2.2 配置vty

[SWA]user-interface vty 0 4
[SWA-ui-vty0-4]authentication-mode aaa
[SWA-ui-vty0-4]user privilege level 15
[SWA-ui-vty0-4]protocol inbound all 
[SWA-ui-vty0-4]q

2.3 配置ssh用户

[SWA]stelnet server  enable  
Info: Succeeded in starting the Stelnet server.
[SWA]ssh user sshadmin
[SWA]ssh user sshadmin authentication-type password
[SWA]ssh user sshadmin service-type stelnet

2.4 配置aaa

[SWA]aaa
[SWA-aaa]local-user sshadmin password cipher huawei@123
[SWA-aaa]local-user sshadmin privilege level 15
[SWA-aaa]local-user sshadmin service-type ssh 
[SWA-aaa]q

2.5 使用Xshell工具登录

在这里插入图片描述

2.6 用户和密码

在这里插入图片描述

在这里插入图片描述

2.7 登录成功

在这里插入图片描述

3. 使用cmd 登录报错提示

在这里插入图片描述

Unable to negotiate with 192.168.83.135 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1

3.1 手动指定加密算法,提示密码长度无效

根据提示显示没有匹配到密钥交换算法,所以我们先手动指定下加密算法,显示连接失败

在这里插入图片描述

3.2 交换机重新生成密钥,修改为2048即可

[SWA]rsa local-key-pair create 
The key name will be: SWA_Host
% RSA keys defined for SWA_Host already exist.
Confirm to replace them? [y/n]:y
The range of public key size is (512 ~ 2048). 
NOTES: If the key modulus is greater than 512, 
       it will take a few minutes.
Input the bits in the modulus[default = 512]:2048
Generating keys...
................................................................................
............................................+++
..........................................................................+++
.............++++++++
..........++++++++

在这里插入图片描述

3.3 cmd 使用ssh再次登录

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc sshadmin@192.168.83.135

在这里插入图片描述

3.4 登录成功

在这里插入图片描述

  • 9
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

友人a笔记

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值