finashell连接欧拉系统报错algorithm negotiation fail

在nat模式链接下,ping百度可以通 ens33文件已经改好。使用finashell 连接出现问题,报错algorithm negotiation fail
1698917441913
![1698917502669|601x406](upload://4PDhE1X
22
9Qe6BOjZKszqgrsDyLYW.png)

你换个远程连接软件试下,比如mobaxterm

1 个赞

虚拟机只有一个nat网卡吗?如果是,还需要添加一块网卡,设置为“host-only”

这通常是ssh 里加密算法协商失败了,openEuler采用的算法策略比较安全,兼容性上可能对老客户端不太友好,可以通过cat /etc/ssh/sshd_config来查看启用了哪些加密算法

1 个赞

社区大佬帮忙解决了我的一个类似问题,提供给你参考

打开/etc/ssh/sshd_config文件,在HostKeyAlgorithms和PubkeyAcceptedKeyTypes配置项增加ssh-rsa

# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.20230427
# grep -vE '^#|^$' /etc/ssh/sshd_config
# vi /etc/ssh/sshd_config
HostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512
PubkeyAcceptedKeyTypes ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512
在HostKeyAlgorithms和PubkeyAcceptedKeyTypes配置项增加ssh-rsa
HostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512,ssh-rsa
PubkeyAcceptedKeyTypes ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512,ssh-rsa

# systemctl restart sshd
# systemctl status sshd
1 个赞