nix构建期间的SSH问题

问题描述 投票:0回答:1

错误文本:

neo@nixos ~/F/nixpkgs> nix-build -A haskellPackages.lambdabot-trusted
these derivations will be built:
  /nix/store/wf447rqgs02yxd4p1lazfzxijmyjc46h-lambdabot-139af15.drv
  /nix/store/437rz7m2hxl2p7lyla3zml8yjhs30w3k-lambdabot-trusted-5.2.drv
building '/nix/store/wf447rqgs02yxd4p1lazfzxijmyjc46h-lambdabot-139af15.drv'...
exporting [email protected]:lambdabot/lambdabot.git (rev 139af15281e815c79596ec1336b72c9ab416ba92) into /nix/store/qjb9kx6nviq2pn8v8yvyj9gypj0nhn89-lambdabot-139af15
Initialized empty Git repository in /nix/store/qjb9kx6nviq2pn8v8yvyj9gypj0nhn89-lambdabot-139af15/.git/
Could not create directory '/home/neo/.ssh'.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Could not create directory '/home/neo/.ssh'.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Unable to checkout 139af15281e815c79596ec1336b72c9ab416ba92 from [email protected]:lambdabot/lambdabot.git.
builder for '/nix/store/wf447rqgs02yxd4p1lazfzxijmyjc46h-lambdabot-139af15.drv' failed with exit code 1
cannot build derivation '/nix/store/437rz7m2hxl2p7lyla3zml8yjhs30w3k-lambdabot-trusted-5.2.drv': 1 dependencies couldn't be built
error: build of '/nix/store/437rz7m2hxl2p7lyla3zml8yjhs30w3k-lambdabot-trusted-5.2.drv' failed

目录/home/neo/.ssh存在(所以这个错误对我来说毫无意义:Could not create directory '/home/neo/.ssh'.),它包含我用来推送到GitHub的密钥。

上面尝试连接的GitHub存储库不是我拥有的,而是公共的,仅用于从中读取。

有关如何解决此问题的任何建议?

git github ssh nix
1个回答
0
投票

最后起作用的是从SSH切换到HTTP URL。

© www.soinside.com 2019 - 2024. All rights reserved.