Git存储库访问被拒绝

时间:2016-07-12 19:01:14

标签: windows git

我在尝试拉取或提交我在我的集​​合上托管的git repo时获得了权限被拒绝的错误。我不止一次生成了ssh密钥对,并将公钥添加到了assembla,但这并没有解决问题。

我在Windows上使用两台使用Git bash的计算机。 它在计算机A上运行得非常好。然后,当我从同一个回购中删除了来自computerB的更改时,我无法访问来自computerA的回购。

$ ssh-keygen -t rsa -C "myemail@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/u//.ssh/id_rsa): C:\Users\agallagher\.ssh\id_rsa
C:\Users\agallagher\.ssh\id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\agallagher\.ssh\id_rsa.
Your public key has been saved in C:\Users\agallagher\.ssh\id_rsa.pub.
The key fingerprint is:


agallagher@LPW7-5CG6181LYY MINGW64 /c/alicia_code_repo (master)
$ git pull
Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.

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

git clone git@git.assembla.com:myrepo.git

Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.

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

0 个答案:

没有答案