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

[email protected]: Permission denied (publickey). #342

Open
michaelfliegner opened this issue Nov 23, 2021 · 1 comment
Open

[email protected]: Permission denied (publickey). #342

michaelfliegner opened this issue Nov 23, 2021 · 1 comment

Comments

@michaelfliegner
Copy link

mf@Michis:~/nixkell$ niv update
Updating all packages
Package: nixpkgs
Package: gitignore
Package: treefmt
FATAL: Could not read the output of 'git'.
command: git ls-remote [email protected]:numtide/treefmt.git refs/heads/master
stdout:
stderr: [email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

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

This is a bug. Please create a ticket:
https://github.com/nmattia/niv/issues/new
Thanks! I'll buy you a beer.
FATAL: One or more packages failed to update:
treefmt: ExitFailure 1
ERROR: ExitFailure 1

@nmattia
Copy link
Owner

nmattia commented Nov 25, 2021

Hi! I suggest removing your treefmt entry and adding it like this:

$ niv add numtide/treefmt

or adding you SSH key to your SSH agent. Niv is calling git to update the repo and git is expecting an SSH key since the repo is adding with the ssh protocol.

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