将SSH密钥添加到authorized_keys:权限被拒绝(publickey) [英] Adding SSH Key to authorized_keys: permission denied(publickey)

查看:1778
本文介绍了将SSH密钥添加到authorized_keys:权限被拒绝(publickey)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我的计算机上同时有一个id_rsaid_rsa.pub,也绑定到我的BitBucket帐户中.
  • 据我了解,我可以在任何需要的地方使用此公钥(只要我的私人配对).
  • I have an id_rsa and id_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

有关更多信息, https://confluence.atlassian.com/display/BITBUCKET/How+to+install+a+public+key+on+your+Bitbucket+account

这篇关于将SSH密钥添加到authorized_keys:权限被拒绝(publickey)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆