Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git Bot与bitbucket集成中的问题_Git_Ssh_Xcode5_Bitbucket_Bots - Fatal编程技术网

Git Bot与bitbucket集成中的问题

Git Bot与bitbucket集成中的问题,git,ssh,xcode5,bitbucket,bots,Git,Ssh,Xcode5,Bitbucket,Bots,我正在使用ssh与bitbucket集成bot。 我已经完成了文档中描述的所有步骤,生成ssh并将其复制到bitbucket上。 但在集成bot时,我总是会遇到以下错误: debug1: Roaming not allowed by server, fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

我正在使用ssh与bitbucket集成bot。
我已经完成了文档中描述的所有步骤,生成ssh并将其复制到bitbucket上。
但在集成bot时,我总是会遇到以下错误:

debug1: Roaming not allowed by server,
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我试过这个:

ssh -T git@bitbucket.org 
在终端上,并获得以下输出:

logged in as my UserName.

You can use git or hg to connect to Bitbucket. Shell access is disabled.

如何解决该问题?

这通常是因为bot使用的帐户与正在测试ssh命令的帐户不同

确保bot在其
~/.ssh
下有
id\u rsa
id\u rsa.pub
(后者复制到您的BitBucket帐户上,这应该是因为您的
ssh-Tgit@bitbucket.org
在终端上工作。
还要检查该
.ssh
文件夹及其文件的权限(同样使用bot使用的正确帐户),如“
[Git ssh authentication][1]
中所述”


委员会确认:

我在MacOSX服务器上对bot使用了错误的ssh密钥:我没有将ssh密钥添加到服务器存储库


似乎与另一个最近未回答的问题类似:我已将.ssh文件夹权限更新为-$chmod 700~/.ssh$chmod 600~/.ssh/*但服务器仍不允许漫游。感谢VonC,我在mac osx服务器上对bot使用了错误的ssh密钥。