本站文章总数为:165
Search Posts

阿里云unbuntu 22.04 xshell5远程提示密钥未注册解决

内容纲要

密钥是对的 提示openssh_8.9p1 密钥未注册
解决方案

vi /etc/ssh/sshd_config

加入

HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

然后

systemctl restart sshd

谷歌翻译
连接到较旧的 SSH 时更有可能出现不兼容问题
尚未升级或未密切跟踪的实现
SSH 协议的改进。 对于这些情况,可能需要
有选择地重新启用 RSA/SHA1 以允许连接和/或用户
通过 HostkeyAlgorithms 和 PubkeyAcceptedAlgorithms 进行身份验证
选项。 例如,~/.ssh/config 中的以下节将启用
用于单个目标主机的主机和用户身份验证的 RSA/SHA1:

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

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注