git克隆ssh和代理
我将其添加到我的sshgit克隆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\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”
。更多信息请点击此处: