niv icon indicating copy to clipboard operation
niv copied to clipboard

[email protected]: Permission denied (publickey).

Open michaelfliegner opened this issue 4 years ago • 1 comments

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

michaelfliegner avatar Nov 23 '21 18:11 michaelfliegner

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.

nmattia avatar Nov 25 '21 09:11 nmattia