选择绑定信息:UDP
点击增加
选择绑定信息:本地连接
点击增加
选择入端口编号和出端口编号,勾选双向通道,点击增加
<Huawei>system-view
[Huawei]sysname SWA
[SWA]interface Vlanif 1
[SWA-Vlanif1]ip address 192.168.83.135 24
[SWA-Vlanif1]q
[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
[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
[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
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
根据提示显示没有匹配到密钥交换算法,所以我们先手动指定下加密算法,显示连接失败
[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...
................................................................................
............................................+++
..........................................................................+++
.............++++++++
..........++++++++
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc sshadmin@192.168.83.135