ssh: unable to authenticate, attempted method:[none publickey], no supported methods remain
golang ssh 证书连接异常 unable to authenticate, attempted method:[none publickey], no supported methods remain
·
异常: ssh: handshake failed: ssh: unable to authenticate, attempted method:[none publickey], no supported methods remain
解决方法:
-
尝试检查 .ssh 和 密钥文件(ex: id_rsa)的权限是否 744 和 600
chmod 744 /root/.ssh
chmod 600 /root/.ssh/id_rsa
-
尝试升级 ssh 版本
go get golang.org/x/crypto
更多推荐
所有评论(0)