问题现象是,使用mobaxterm登录ubuntu24.04后台失败。
mobaxterm上提示
Server refused our key
No supported authentication methods available (server sent: publickey)
启用sshd最低调试级别日志
vi /etc/ssh/sshd_config
LogLevel DEBUG3
看到的错误信息是
userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
搜索了很多文档,找到这篇博客
https://superuser.com/questions/1678830/server-refused-our-key-only-from-mobaxterm-bookmark-setup
原来我的mobaxterm客户端版本太旧了,是v20.6,只支持SHA-1 哈希算法。但是新版本的sshd禁用了此算法。
查看mobaxterm的更新日志,至少v21.5才支持此算法。因此最简单和安全的方法是,使用新版本的mobaxterm。
这篇博客是改服务器配置,基于服务器安全考虑,不推荐这种改法。
https://blog.csdn.net/zone_/article/details/125424976
来源链接:https://www.cnblogs.com/huitiandayu/p/18645921









没有回复内容