SSH error after enabling LFS

After enabling LFS on my Gitlab repo I have suddenly started getting SSH errors when I push:

>git push
Enter passphrase for key '/c/Users/owner/.ssh/id_rsa':
Git LFS: (0 of 1 files) 0 B / 195.57 MB
batch request: exit status 255: Permission denied (publickey).
error: failed to push some refs to 'git@gitlab.com:axumgfx/docs.git'

Is there an extra step required to authenticate LFS via SSH? I have SSH key and passphrase setup and it works fine before enabling LFS.

I was seeing the same error after I started using LFS.

I noticed on forums that some people had better luck using HTTPS instead of SSH, so I tried that and it worked for me. I did it by changing the Git config for my “origin” remote from “url = git@gitlab.com…” to “url = https://gitlab.com…”

Here’s a post the discusses the HTTPS vs SSH issue in a bit more detail: