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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/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
Ssh Sourcetree无法访问GitLab_Ssh_Gitlab_Atlassian Sourcetree - Fatal编程技术网

Ssh Sourcetree无法访问GitLab

Ssh Sourcetree无法访问GitLab,ssh,gitlab,atlassian-sourcetree,Ssh,Gitlab,Atlassian Sourcetree,我有两台电脑,每台都安装了SourceTree。在每台机器上,我运行ssh keygen-t rsa来生成公钥和私钥,并将它们放在文件夹中: G:/.ssh/PC1 G:/.ssh/PC2 在每个文件夹下,有3个文件:id\u rsa,id\u rsa.pub,已知主机 我复制了每个id_ras.pub的内容,以便在服务器中创建一个SSH密钥。在每台机器上的SourceTree中,我指定“SSH客户端配置”,以便 SSH密钥指向G:\.SSH\PC1\id\u rsa&G:\.SSH\PC2

我有两台电脑,每台都安装了SourceTree。在每台机器上,我运行ssh keygen-t rsa来生成公钥和私钥,并将它们放在文件夹中:

G:/.ssh/PC1

G:/.ssh/PC2
在每个文件夹下,有3个文件:
id\u rsa
id\u rsa.pub
已知主机

我复制了每个
id_ras.pub
的内容,以便在服务器中创建一个SSH密钥。在每台机器上的SourceTree中,我指定“SSH客户端配置”,以便

SSH密钥
指向
G:\.SSH\PC1\id\u rsa
&
G:\.SSH\PC2\id\u rsa

OpenSSH在这两台机器上都用于SSH客户端

但其中一台PC似乎能够在SourceTree中正确访问GitLab,即推/拉工作;在另一台电脑上,启动SourceTree时,会发出警报:

“ssh代理”失败,代码为-1:系统。异常:无法启动“C:\Users\xxx\AppData\Local\Atlassian\SourceTree\git\u Local\bin\ssh agent.exe”检查git安装

此外,我尝试了从GitLab新签出到PC上不工作的新文件夹,然后开始工作。但后来,它停止工作并发出相同的警报

我试图从存储库中提取,但出现以下错误:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
C:\Users\xxx\AppData\Local\Atlassian\SourceTree\git_local\bin\sh.exe: *** fork: can't reserve 
memory for stack 0x2E60000 - 0x3060000, Win32 error 0

  0 [main] sh 11020 sync_with_child: child 7124(0x238) died before initialization with status code 0x1
 13 [main] sh 11020 sync_with_child: *** child state waiting for longjmp
 C:\Program Files (x86)\Atlassian\SourceTree\tools\openssh_wrapper.sh: fork: Resource temporarily unavailable

 fatal: Could not read from remote repository.