Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.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/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/3/reactjs/24.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获取-对等方重置连接_Git_Ssh_Ssh Keys - Fatal编程技术网

无法git获取-对等方重置连接

无法git获取-对等方重置连接,git,ssh,ssh-keys,Git,Ssh,Ssh Keys,我有一个PHP脚本,用于处理自动部署到预生产服务器的过程,使用。部署脚本是 直到这个星期天,一切都很顺利。此后,自动部署停止工作。如果我从prepod服务器将cd放入我的git存储库并手动git获取,我会得到通用的和非表达的: Read from socket failed: Connection reset by peer fatal: The remote end hung up unexpectedly 我确保我的sshid\u rsa密钥被很好地复制到了BitBucket。这将是非常令

我有一个PHP脚本,用于处理自动部署到预生产服务器的过程,使用。部署脚本是

直到这个星期天,一切都很顺利。此后,自动部署停止工作。如果我从prepod服务器将
cd
放入我的git存储库并手动
git获取
,我会得到通用的和非表达的:

Read from socket failed: Connection reset by peer
fatal: The remote end hung up unexpectedly
我确保我的ssh
id\u rsa
密钥被很好地复制到了BitBucket。这将是非常令人惊讶的过度,因为我没有碰它,因为脚本已经运行

以下是分配的不同权限:

$ ls -al ~ | grep .ssh                                      
drwx------  2 local local     4096 mars  13 13:28 .ssh  

$ ls -al ~/.ssh                                                                             
-rw-r--r--  1 local local  802 mars  11 17:11 authorized_keys                                            
-rw-r--r--  1 local local   51 mars  11 18:16 config
-rw-------  1 local local 1675 mars  12 17:44 id_rsa
-rw-r--r--  1 local local  396 mars  12 17:44 id_rsa.pub                                           
-rw-------  1 local local 1326 mars  25 17:38 known_hosts   
-rw-r--r--  1 local local 1326 mars  11 18:34 known_hosts.old
因此,由于我不能
git fetch
我的远程存储库,我的服务器也不能
git fetch,所以(自动)部署就无法进行。我不明白宋承宪为什么拒绝工作。整个下午我都在试着用几个键和用户


欢迎任何建议。

确保本地回购中的远程url与站点上回购的Bitbucket显示相同

git remote -v

在Bitbucket站点上:转到项目页面->操作->克隆->检查url或从头开始克隆它

“对等连接重置”表示远程(服务器)进程异常关闭TCP连接。可能导致这种情况的一个原因是服务器进程崩溃。您需要在服务器上而不是客户端上对此进行故障排除。非常感谢您的建议。不幸的是,我的服务器是Bitbucket。。。我不能检查那边的任何东西,我很害怕。