当前位置:论坛首页 > Linux面板 > 讨论

【已完成】解决宝塔终端登录提示无法自动认证的问题

发表在 Linux面板2022-8-16 11:03 [复制链接] 3 4355

搜索了好久发现是更新到openssh8.9P1之后的问题(Ubuntu 22.04.1的源已经更新到此版本)


这个其实是新版本openssh弃用了RSA/SHA1密钥算法导致老旧客户端无法识别



先附上一段官方说明: #感谢jumpserver官方开发人员的解说
Incompatibility is more likely when connecting to older SSH
implementations that have not been upgraded or have not closely tracked
improvements in the SSH protocol. For these cases, it may be necessary
to selectively re-enable RSA/SHA1 to allow connection and/or user
authentication via the HostkeyAlgorithms and PubkeyAcceptedAlgorithms
options. For example, the following stanza in ~/.ssh/config will enable
RSA/SHA1 for host and user authentication for a single destination host:
Host old-host
    HostkeyAlgorithms +ssh-rsa
        PubkeyAcceptedAlgorithms +ssh-rsa

需要在服务器端的/etc/ssh/sshd_config配置中增加
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
重启systemctl restart sshd 即可



也可以单独修改客户端的配置,让其可以连接服务器
vi /etc/ssh/ssh_config #增加如下内容


PubkeyAcceptedKeyTypes=+ssh-rsa





使用道具 举报 只看该作者 回复
发表于 2022-8-16 11:16:23 | 显示全部楼层
官方面板尽快更新终端的加密算法吧,弃用RSA/SHA1是大势所趋
使用道具 举报 回复 支持 反对
发表于 2022-9-27 15:22:54 | 显示全部楼层
感谢反馈,这个问题我反馈给对应的开发
使用道具 举报 回复 支持 反对
发表于 2022-11-12 17:53:57 | 显示全部楼层
宝塔用户_inltad 发表于 2022-8-16 11:16
官方面板尽快更新终端的加密算法吧,弃用RSA/SHA1是大势所趋

已经更新ssh密钥算法,请更新到最新版本
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表