Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ssh': Permission denied #43

Open
ljabbo opened this issue Nov 1, 2024 · 1 comment
Open

'ssh': Permission denied #43

ljabbo opened this issue Nov 1, 2024 · 1 comment

Comments

@ljabbo
Copy link

ljabbo commented Nov 1, 2024

I installed Logseq through Snap (https://snapcraft.io/install/logseq/ubuntu) and setup Github using the tutorial in this repo. After completing it, I noticed that changes were automatically created in the local git repo, but were not pushed to remote. The issue was that the snap package did not have a slot for the ssh-keys interface, which was required to make the connection to the Github servers.

The resulting error that was shown in Logseq is

precommit
fatal: cannot exec 'ssh': Permission denied
fatal: unable to fork

(I believe the reason this error shows up at all, is that I added echo "precommit" to the pre-commit hook, causing it to show the output in Logseq as a notification. I did this to verify it was actually working through Logsec, as a regular git commit from the terminal did trigger the pre- and post-commits as expected.)

I fixed this by manually adding the ssh-keys slot to Logseq, through

sudo snap connect logseq:ssh-keys

Checking the snap package interfaces can be done with snap connections logseq.

I am posting this in the hope that anyone else running into this problem can find the solution.

This was on Ubuntu 24.04.

@dida1024
Copy link

dida1024 commented Nov 5, 2024

thank! from Ubuntu 24.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants