我有一个git回购我想在远程使用这个命令。
$ git push origin master ssh: connect to host port 22: Bad file number fatal: The remote end hung up unexpectedly.
我正在试图用GitBash做到这一点。
我通常通过腻子login,所以我知道我的关键作品,并在那里。 我需要做什么来解决这个问题?
https://stackoverflow.com/questions/4399106/pushing-to-github-from-work-bad-file-number-error有一个接受的答案,表明该问题可能是由试图通过代理推动引起的。 究竟是如何工作与SSH我不知道,但由于答案被接受,我认为这个问题有一个代理,修复它或从等式中删除解决了这个问题。
没有代理,这是完全与本地networking。
请发布git config -l的输出,或者至less是git config --get http.proxy ?
我可以用我的Putty和id_sha键login到机器上。 但是我得到这个:
Permission denied (publickey). fatal: The remote end hung up unexpectedlyPermission denied (publickey). fatal: The remote end hung up unexpectedly当我尝试使用git bash时Permission denied (publickey). fatal: The remote end hung up unexpectedly。
你看看sshd日志吗?
无论如何,使用HTTP来推动看看会发生什么:
# git remote rm origin # git remote add origin https://git.domain.com/project/repo.git # git config --global http.sslVerify false # git push origin master