简体   繁体   English

git-clone致命,拒绝权限

[英]git-clone fatal, permission denied

I've got a new git that for some reason I can't clone on one machine. 我有一个新的git,由于某种原因,我无法在一台机器上进行克隆。 Clone works fine from my laptop and various desktops, but from an older server with git --version 1.5.2.1 I get the following error: 在我的笔记本电脑和各种台式机上,克隆都可以正常工作,但是在git --version 1.5.2.1的旧服务器上,克隆出现以下错误:

git clone git@git.assembla.com:sbpy.git

Initialized empty Git repository in /home/pkp/test/sbpy/.git/
Permission denied (publickey,keyboard-interactive).
fatal: The remote end hung up unexpectedly
fetch-pack from 'git@git.assembla.com:sbpy.git' failed.

I can't upgrade the local git. 我无法升级本地git。 Can anyone help me sort this out? 谁能帮我解决这个问题?

Thanks 谢谢

You need to generate ssh keys and link posted above is a good one. 您需要生成ssh密钥,上面发布的链接是一个不错的选择。

To upload your public ssh key(s) (you can have multiple keys uploaded obviously, used on different computers maybe) to assembla , go to: Manage Ssh Keys tab on your user profile page. 要将公共ssh密钥(您显然可以上传多个密钥,可能在不同的计算机上使用)上载到ssembla ,请转至:用户个人资料页面上的“ 管理Ssh密钥”选项卡。

Make sure you are logged in. 确保您已登录。

If this is your repo. 如果这是您的仓库。 First you must configure your ssh keys. 首先,您必须配置ssh密钥。

Follow the https://help.github.com/articles/generating-ssh-keys but don't copy keys to github. 遵循https://help.github.com/articles/generating-ssh-keys,但不要将密钥复制到github。 Then add content of your public key (id_rsa.pub) to your account in assembla.com(I don't know the Assembla user interface, but there must by option to add your keys) 然后将您的公钥(id_rsa.pub)的内容添加到assembla.com中的帐户中(我不知道Assembla用户界面,但是必须有选择地添加您的密钥)

And then clone your repo. 然后克隆您的仓库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM