GIT SSH公钥错误 [英] GIT SSH public key error

查看:336
本文介绍了GIT SSH公钥错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用ssh克隆git repo我有git SSH fiel从其它系统中复制,但是在这个系统上它给出了错误 -



克隆到'回购'...
权限被拒绝(公钥)。
致命:无法从远程存储库读取。



请确保您拥有正确的访问权限
并存在存储库。

解决方案

看起来您没有正确的私人密钥。



创建了一对私人 - 公共密钥?
如果没有,您可以按照 p>

I am trying to clone git repo using ssh I have git SSH fiel copied from another system where it is working , but on this system it is giving error -

Cloning into 'repo'... Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

解决方案

Looks like you don't have the correct private key.

have you created a pair of private-pubic keys? if not you can follow the instructions here

Are you also using putty? (you were asked in the installation of Git). If so, follow the instructions above but generate the key with puttygen (and not with the command

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

)

after creating a pair, convert the putty-created public key to OpenSSH format and then upload it to GitHub as your key. The last step is to configure putty's default settings to use the private key generated by puttygen

这篇关于GIT SSH公钥错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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