Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.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
git克隆ssh和代理_Git_Ssh - Fatal编程技术网

git克隆ssh和代理

git克隆ssh和代理,git,ssh,Git,Ssh,我将其添加到我的ssh.ssh\config文件中: ProxyCommand connect -H http://user:password@myproxy:myproxyport %h %p Host git-codecommit.eu-west-1.amazonaws.com User myawskey IdentityFile ~/.ssh/id_rsa 我有一个错误: $ git push 'C:\Program' n'est pas reconnu en tant que

我将其添加到我的ssh
.ssh\config
文件中:

ProxyCommand connect -H http://user:password@myproxy:myproxyport %h %p

Host git-codecommit.eu-west-1.amazonaws.com
  User myawskey
  IdentityFile ~/.ssh/id_rsa
我有一个错误:

$ git push
'C:\Program' n'est pas reconnu en tant que commande interne
ou externe, un programme ex▒cutable ou un fichier de commandes.
FATAL: Cannot decide password for proxy authentication.kex_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
我的资金
connect
bin在此:

$ connect
connect --- simple relaying command via proxy.
Version 1.105
usage: C:\Program Files\Git\mingw64\bin\connect.exe [-dnhst45] [-p local-port]
          [-H proxy-server[:port]] [-S [user@]socks-server[:port]]
          [-T proxy-server[:port]]
          [-c telnet-proxy-command]
          host port
编辑

我尝试:
ProxyCommand C:\Program\Files\Git\mingw64\bin\connect.exe…

我尝试:
ProxyCommand/c/ProgramFiles/Git/mingw64/bin/connect.exe…


我尝试:
ProxyCommand”/c/Program Files/Git/mingw64/bin/connect.exe“…

请检查:@dejdej,我正在查找代理
ssh
而不是
HTTPS
,因为您的
ProxyCommand
在第一个参数中包含空格,您需要引用它来保留空格:
ProxyCommand>“/c/Program Files/Git/mingw64/bin/connect.exe”…
@JoachimSauer,我试过了,但同样的错误很抱歉,通常这应该可以解决它:对于
“c:\Program Files”
,使用以下路径符号
“c:\PROGRA~1”
,对于
“c:\Program Files(x86)”
使用
“c:\PROGRA~2”“
。这里的更多信息:请检查:@dejdej,我正在寻找
ssh
的代理,而不是
HTTPS
,因为您的
ProxyCommand
在第一个参数中包含一个空格,您需要引用它来保留空格:
ProxyCommand”/c/Program Files/Git/mingw64/bin/connect.exe“…
@joachimsuer,我尝试了一下,但同样的错误很抱歉,通常情况下,这会解决问题:对于
“C:\Program Files”
,使用以下路径表示法
“C:\PROGRA~1”
,对于
“C:\Program Files(x86)”
使用
“C:\PROGRA~2”
。更多信息请点击此处: