Push via SSH does not work with git LFS

306 views
Skip to first unread message

afil...@gmail.com

unread,
Nov 28, 2016, 3:34:16 AM11/28/16
to gitblit
Hello!

I use Gitblit 1.6.2 and now plan to migrate to version 1.8.0, so i tested 1.8.0 before migrating and encountered some problems with git-lfs.

I installed git-lfs
(
git lfs install
git lfs track "*.pdf"
and git config --global credential.helper wincred to avoid password asking)
)
When i use push via HTTP everything works fine.

When i use push via SSH, it does not work. I type 'git push origin master', then i see in log two "creating ssh session.." and nothing happens (push not happening). After cancelling (Ctrl+C) i see an exception in log.

2016-11-28 11:11:32 [INFO ] creating ssh session from /10.100.89.65:49696

2016-11-28 11:11:33 [INFO ] creating ssh session from /10.100.89.65:49699

2016-11-28 11:11:39 [INFO ] closed ssh session from /10.100.89.65:49696

2016-11-28 11:11:39 [WARN ] Exception caught

java.io.IOException: ърчрээюх ёхЄхтюх шь  сюыхх эхфюёЄєяэю.

 

        at sun.nio.ch.Iocp.translateErrorToIOException(Unknown Source)

        at sun.nio.ch.Iocp.access$700(Unknown Source)

        at sun.nio.ch.Iocp$EventHandlerTask.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

2016-11-28 11:11:39 [INFO ] closed ssh session from /10.100.89.65:49699


I use tortoisegit, so i tried two SSH settings:

1) using the default ssh client (openssh)

2) using TortoiseGitPlink ssh client


always the same thing: two "creating ssh session..." in log and nothing happens, push does not work.


If i type "git lfs uninstall" and try  again to push via SSH, everythyng is fine (the problem is only when git lfs installed, it reproduce after installing git lfs (git lfs install) even if there is no one gitlfs-tracked exctension it the commit that i try to push).


Any idea on what am i doing wrong with ssh? ...


Git LFS 1.5.2 for Windows

Git version 2.8.4.windows.1


Thank you.



James Moger

unread,
Nov 29, 2016, 9:56:26 AM11/29/16
to git...@googlegroups.com
The LFS support only works with the http/s transport.  I think there is a way to force your git LFS to use http/s for communication but I'm not sure what it is.  Try searching the GitHub issues for LFS, IIRC the config details were included in a note on a closed issue.

-J


--
You received this message because you are subscribed to the Google Groups "gitblit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitblit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages