ssh公钥登录失败报错:sign_and_send_pubkey: no mutual signature supported

报错截图

解决方法

1. 保证id_rsa权限为600

2. cd ~/.ssh目录下

3. 创建文件config

4. 文件内容: PubkeyAcceptedKeyTypes +ssh-rsa,保存退出

5. 如果现在开着是xshell终端,打开一个新的xshell终端,反正就是打开一个新的终端窗口

6. 再次尝试命令:ssh -i id_rsa [email protected]

完美解决

猜你喜欢

转载自blog.csdn.net/u012206617/article/details/125237171