Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.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,can';t提交到远程Web服务器存储库_Git_Ssh - Fatal编程技术网

Git,can';t提交到远程Web服务器存储库

Git,can';t提交到远程Web服务器存储库,git,ssh,Git,Ssh,我租用了一个Web服务器,并设置了本地开发环境。我的目标是让作业流程像这样工作——我做一些本地更改,将它们提交到租用的Web服务器测试环境中,如果一切都能在实时环境中运行 我的Web服务器提供商提供了SSH支持,并且我已经设置了RSA密钥。我从本地环境中复制了所有文件(包括.git文件夹),通过FTP进行直播 问题是我似乎无法做出承诺。我尝试将chmod启用到777,但仍然出现以下错误: C:\wamp\www\site17>git push origin master Enter pas

我租用了一个Web服务器,并设置了本地开发环境。我的目标是让作业流程像这样工作——我做一些本地更改,将它们提交到租用的Web服务器测试环境中,如果一切都能在实时环境中运行

我的Web服务器提供商提供了SSH支持,并且我已经设置了RSA密钥。我从本地环境中复制了所有文件(包括.git文件夹),通过FTP进行直播

问题是我似乎无法做出承诺。我尝试将chmod启用到777,但仍然出现以下错误:

C:\wamp\www\site17>git push origin master
Enter passphrase for key '/c/Users/yod/.ssh/id_rsa':
bash: git-receive-pack: command not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
我知道我有正确的psw和路径,并且存储库存在,因为通过ls我得到了这个响应

C:\wamp\www\site17>git ls-remote virt55973@www.vivule.ee:~/domeenid/www.vivule.e
e/kraater/.git
Enter passphrase for key '/c/Users/yod/.ssh/id_rsa':
efe835684e95fe092bb7bfdc561cb0a16ad3fd00        HEAD
00b183227efac6a25531499a2c172cba6b52a320        refs/heads/checkout
00b183227efac6a25531499a2c172cba6b52a320        refs/heads/master
efe835684e95fe092bb7bfdc561cb0a16ad3fd00        refs/heads/set_up_angular2

我想问题在于SSH在提交时的行为不同,但我不能对此指手画脚。

我想我可以指手画脚,但我不会将此作为答案发布,因为上次我投了反对票。当我的本地证书与我在Bitbucket配置页面中输入的内容不匹配时,我在Bitbucket中看到了此错误。你在什么地方告诉Git服务器你的本地证书是什么?请检查以确保您已完成此操作。@TimBiegeleisen您是指ssl证书吗?为了测试这个理论,我在本地和远程存储库中设置了[http]sslVerify=false。没用。你是说其他的认证方法吗?当使用Bitbucket(我假设也是Github)时,你需要将本地SSL证书粘贴到提供商网站上的表单中。这告诉提供者,当您出示证书时,它应该识别您的证书。我在使用Bitbucket时收到了您的错误消息,这就是问题所在。如果没有帮助,很抱歉。@TimBiegeleisen在我的Web服务器中,它似乎是通过SSH完成的(我已粘贴到主机提供程序表单中)。如果钥匙是假的,我甚至可以使用ls remote吗?不幸的是,你打败了我,但我击败了你,所以你会一直被别人注意到。