執行nix flake update或者sudo nixos-rebuild switch --flake .均會報如下錯誤
...................
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.
warning: could not read HEAD ref from repo at 'ssh://git@github.com/ryan4yin/nix-secrets.git', using 'master'
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.
error:
… while updating the lock file of flake 'path:/etc/nixos?lastModified=1711889533&narHash=sha256-RO3rlYZimWKQEgRdL9kCU0vbJdU5SWi8I7kHFmctKM4%3D'
… while updating the flake input 'mysecrets'
… while fetching the input 'git+ssh://git@github.com/ryan4yin/nix-secrets.git?shallow=1'
error: program 'git' failed with exit code 128
朋友您好,最近對你的book和倉庫進行了閱讀和使用,受益匪淺,但是有些問題,請教一下:
Please make sure you have the correct access rights and the repository exists. warning: could not read HEAD ref from repo at 'ssh://git@github.com/ryan4yin/nix-secrets.git', using 'master'
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. error: … while updating the lock file of flake 'path:/etc/nixos?lastModified=1711889533&narHash=sha256-RO3rlYZimWKQEgRdL9kCU0vbJdU5SWi8I7kHFmctKM4%3D'