haydenull / logseq-plugin-git

A git plugin for logseq
MIT License
115 stars 24 forks source link

Git push failed (linux) #21

Closed celsomiranda closed 1 year ago

celsomiranda commented 1 year ago

When committing and pushing I get the following error:

Git push failed ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I'm pushing to a private repo, authenticated via SSH. If I pop to the console and do a manual git push it pushes the commits no problem.

breadchris commented 1 year ago

@celsomiranda there isn't much that this plugin is going to be able to do. I have run into this before when using Obsidian and I needed to my ssh key to the agent on startup in order to get it working.

celsomiranda commented 1 year ago

But my ssh key IS added to the agent...

It doesn't even require me to put in my password again when I do a git push on the console right after logseq fails to do it.

celsomiranda commented 1 year ago

Nevermind. Problem was related with it being a Flatpak. AppImage works as intended.

grissu commented 1 year ago

Alternatively you might want to change the "Secure Shell agent" setting of the Flatpak with Flatseal.

Karrq commented 1 year ago

I don't have askpass by choice, as I use KDE Plasma so I have ksshaskpass. Is there a way to specify what executable to use?