Git LFS bugs with SSH authentication #1142

Closed
opened 2025-11-02 03:49:55 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @Vuregu on GitHub (Oct 11, 2017).

I've noticed some odd behaviour upon trying out SSH authentication with Git LFS on Gitea.

  • Pushing
    You can push LFS files to the LFS server with just SSH authentication, although it will ask you for authentication the first time around, which you can cancel once or twice upon which it will continue to upload them successfully.
    Any subsequent pushes of LFS files will log "WARNING: Authentication error: Authorization required... Check that you have propoer access to the repository" but LFS will initialize and upload all of the files succesfully.
    I've verified that in both initial and subsequent pushes the LFS files do end up on the repository and are stored in the LFS cache.

  • Checking out
    Cloning/checking out a repository with LFS files using just SSH authentication does not come with any warnings, LFS starts to do its thing and files are being downloaded. However, after a dozen files or so finish downloading and checking out, authentication is asked for all of a sudden, and if you do not provide it, LFS halts further downloading. The first dozen files however do succesfully download and check out. This is very odd behaviour.

Because you can successfully push an entire repository with just SSH authentication over LFS, my initial verdict was that indeed LFS with SSH was supported on Gitea. But upon realizing that check outs do not complete, strangely they do however start to a certain extent, I must admit that SSH authentication is not supported by Gitea with Git LFS.

Originally created by @Vuregu on GitHub (Oct 11, 2017). I've noticed some odd behaviour upon trying out SSH authentication with Git LFS on Gitea. - Pushing You can push LFS files to the LFS server with just SSH authentication, although it will ask you for authentication the first time around, which you can cancel once or twice upon which it will continue to upload them successfully. Any subsequent pushes of LFS files will log "WARNING: Authentication error: Authorization required... Check that you have propoer access to the repository" but LFS will initialize and upload all of the files succesfully. I've verified that in both initial and subsequent pushes the LFS files do end up on the repository and are stored in the LFS cache. - Checking out Cloning/checking out a repository with LFS files using just SSH authentication does not come with any warnings, LFS starts to do its thing and files are being downloaded. However, after a dozen files or so finish downloading and checking out, authentication is asked for all of a sudden, and if you do not provide it, LFS halts further downloading. The first dozen files however do succesfully download and check out. This is very odd behaviour. Because you can successfully push an entire repository with just SSH authentication over LFS, my initial verdict was that indeed LFS with SSH was supported on Gitea. But upon realizing that check outs do not complete, strangely they do however start to a certain extent, I must admit that SSH authentication is not supported by Gitea with Git LFS.
GiteaMirror added the type/bugissue/duplicate labels 2025-11-02 03:49:55 -06:00
Author
Owner

@lunny commented on GitHub (Oct 12, 2017):

duplicated with #2475 ?

@lunny commented on GitHub (Oct 12, 2017): duplicated with #2475 ?
Author
Owner

@Vuregu commented on GitHub (Oct 13, 2017):

I'm not entirely sure it is a duplicate, because I thought it was supposed to be implemented here: https://github.com/go-gitea/gitea/pull/122 and also because it works when you try to push, albeit with the warnings and the prompt.

@Vuregu commented on GitHub (Oct 13, 2017): I'm not entirely sure it is a duplicate, because I thought it was supposed to be implemented here: https://github.com/go-gitea/gitea/pull/122 and also because it works when you try to push, albeit with the warnings and the prompt.
Author
Owner

@bkcsoft commented on GitHub (Oct 15, 2017):

Yes this is a duplicate of #2475 :)

@bkcsoft commented on GitHub (Oct 15, 2017): Yes this is a duplicate of #2475 :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1142