ssh报错,查看目标服务器日志:userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

已邀请:

添加或修改以下配置(根据实际需求选择一种):
ini

允许所有 RSA 算法(包括旧版 ssh-rsa)

PubkeyAcceptedAlgorithms +ssh-rsa


或仅允许更安全的 RSA 变体

PubkeyAcceptedAlgorithms rsa-sha2-256,rsa-sha2-512
重启 SSH 服务:
bash
sudo systemctl restart sshd

要回复问题请先登录注册