首页前端开发HTMLSSH Permission denied (publickey)解决办法

SSH Permission denied (publickey)解决办法

时间2024-05-20 00:32:04发布访客分类HTML浏览97
导读:重装了mac系统后,用终端terminal录服务器时,提示 Permission denied (publickey ,无法登录,在win下试了一下完全可以登录。 f you have some problems likes Permis...

重装了mac系统后,用终端terminal录服务器时,提示 Permission denied (publickey),无法登录,在win下试了一下完全可以登录。

f you have some problems likes Permission denied (publickey,gssapi-with-mic), or the error 'Not a RSA1 key file' when using ssh remote login, try to fix issues as below:get more information with ssh -vvvusername@yourhost.com, it's more important.check the permissions of your private and public keys, id_rsa should 600, id_rsa.pub should 644check if your id_rsa matched with id_rsa.pub.For the 3rd, it looks very strange, I am not sure it's a bug of openssh or something. The id_rsa.pub is the public key for my windows host (I have ssh server on windows), the id_rsa is the private key for remote linux host, I put them to the .ssh folder.But when I ssh login the linux host, I got "Permission denied (publickey,gssapi-with-mic)". if I remove id_rsa.pub from .ssh folder, it work fine.

用上面的第三条办法解决,因为我的id_rsa和id_ras.pub位于同一目录,将id_rsa.pub删除后成功登陆服务器。

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!


若转载请注明出处: SSH Permission denied (publickey)解决办法
本文地址: https://pptw.com/jishu/663789.html
个人推荐CSS书写顺序 mac下的编辑神器vim配置

游客 回复需填写必要信息