From c68036f8b000f19df891ccbee5c4d19d90699e4d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 10 Jun 2015 14:57:07 +0200 Subject: [PATCH] Pass ssh key --- src/hydra-queue-runner/build-remote.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index 67d14991..f3d153e4 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -39,7 +39,7 @@ static void openConnection(const string & sshName, const string & sshKey, if (dup2(stderrFD, STDERR_FILENO) == -1) throw SysError("cannot dup stderr"); - Strings argv({"ssh", "-x", "-a", sshName, "--", "nix-store", "--serve", "--write"}); + Strings argv({"ssh", sshName, "-i", sshKey, "-x", "-a", "--", "nix-store", "--serve", "--write"}); execvp("ssh", (char * *) stringsToCharPtrs(argv).data()); // FIXME: remove cast