Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录提示Unable to negotiate with 127.0.0.1 port 2222: no matching host key type found. Their offer: ssh-rsa #34

Open
colder219 opened this issue Oct 12, 2023 · 1 comment

Comments

@colder219
Copy link

无论用二进制还是docker都是这样,操作系统rocky9

@colder219
Copy link
Author

解决了
先修改 ~/.ssh/config 增加
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

报错会变成 ssh_dispatch_run_fatal: Connection to 127.0.0.1 port 2222: error in libcrypto

然后执行
sudo update-crypto-policies --set LEGACY

就可以了

参考
https://zhuanlan.zhihu.com/p/616716090
https://serverfault.com/questions/1125843/error-in-libcrypto-connecting-rhel-9-server-to-centos-6-via-sftp-ssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant