网站地图    收藏   

主页 > 前端 > html5 >

SSH Permission denied (publickey)解决办法

来源:自学PHP网    时间:2014-10-22 15:39 作者: 阅读:

[导读] SSH Permission denied (publickey)解决办法HTML5中文学习网,是中国最大的HTML5中文门户,为广大HTML5爱好者提供各种HTML5资料,包括HTML5网站、HTML5资讯、HTML5应用、HTML5游戏、HTML5教程、HTML5视频、...

重装了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 -vvv username@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删除后成功登陆服务器。

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论