Why is SSH working, but not git push over SSH?

Viewed 30

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).

However, after setting up a git remote like so:

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!

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.

1 Answers

I added GIT_TRACE=1 and that showed that it was failing at a git-lfs step which I added to my git repository. After googling, git-lfs doesn't support ssh, which is the issue.

Related