简体   繁体   English

为什么 SSH 工作,但 git 推过 SSH?

[英]Why is SSH working, but not git push over SSH?

I am truly lost as to what is happening here.对于这里发生的事情,我真的很迷茫。 I followed this guide to setup a git hook on my remote server (NearlyFreeSpeech.net).按照本指南在我的远程服务器 (NearlyFreeSpeech.net) 上设置了 git 挂钩。

However, after setting up a git remote like so:但是,像这样设置 git 遥控器后:

git remote add nfsn ssh://USERNAME@NFSNSERVER/home/private/git/REPONAME.git

The following command hangs at the 'Enter password' prompt - after entering the password, it keeps re-prompting:以下命令在“输入密码”提示符处挂起 - 输入密码后,它不断重新提示:

git push nsfn master

However, running ssh USERNAME@NFSNSERVER works fine as expected!但是,运行ssh USERNAME@NFSNSERVER可以正常工作!

I have double, triple checked I am entering the right password!我有双重,三重检查我输入了正确的密码! I am also certain there are no errors in the typing of USERNAME@NFSNSERVER .我也确定USERNAME@NFSNSERVER的输入没有错误。

I added GIT_TRACE=1 and that showed that it was failing at a git-lfs step which I added to my git repository.我添加了 GIT_TRACE=1 ,这表明它在我添加到我的 git 存储库的 git-lfs 步骤中失败了。 After googling, git-lfs doesn't support ssh, which is the issue.谷歌搜索后,git-lfs 不支持 ssh,这就是问题所在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM