Closed stdnt-xiao closed 8 months ago
经过测试发现是加密算法不适配的问题。联系社区已经解决,提供给其他人参考。 参考链接1: https://blog.csdn.net/qq_21271511/article/details/121784463 参考链接2: https://forum.openeuler.org/t/topic/2636/2 实际解决方法如下: ` 打开/etc/ssh/sshd_config文件,在HostKeyAlgorithms和PubkeyAcceptedKeyTypes配置项增加ssh-rsa
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
`
感谢反馈~方便加下vx吗
大佬,当然可以,发您gmail邮箱了
经过测试发现是加密算法不适配的问题。联系社区已经解决,提供给其他人参考。 参考链接1: https://blog.csdn.net/qq_21271511/article/details/121784463 参考链接2: https://forum.openeuler.org/t/topic/2636/2 实际解决方法如下: ` 打开/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
`