将SSH密钥添加到authorized_keys:权限被拒绝(publickey) [英] Adding SSH Key to authorized_keys: permission denied(publickey)
本文介绍了将SSH密钥添加到authorized_keys:权限被拒绝(publickey)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
- 我的计算机上同时有一个
id_rsa
和id_rsa.pub
,也绑定到我的BitBucket帐户中. - 据我了解,我可以在任何需要的地方使用此公钥(只要我的私人配对).
- I have an
id_rsa
andid_rsa.pub
on my computer also tied into my BitBucket account. - As I understand I can use this public key anywhere I please (as long as my private matches).
问题:我无法弄清楚如何使任何服务器接受公钥,您看到我做错了什么吗?
The Problem: I cannot figure out how to get any server to accept the public key, do you see what I've done wrong?
$ cat id_rsa.pub >> authorized_keys
$ service ssh restart (I suppose this isn't needed)
$ git pull origin master
$ Permission denied(publickey)
我做错了什么?我已经被困了好几天了.
What am I doing wrong? I've been stuck for days.
推荐答案
您需要将id_rsa.pub的内容复制到设置页面中的bitbucket avcount
You need to copy the content of id_rsa.pub to the bitbucket avcount its in the settings page
这篇关于将SSH密钥添加到authorized_keys:权限被拒绝(publickey)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文