forked from lix-project/hydra
hydra-queue-runner: Improve SSH flags
This commit is contained in:
parent
f57d0b0c54
commit
3855131185
|
@ -39,9 +39,11 @@ static void openConnection(const string & sshName, const string & sshKey,
|
|||
if (dup2(stderrFD, STDERR_FILENO) == -1)
|
||||
throw SysError("cannot dup stderr");
|
||||
|
||||
// FIXME: ensure no password prompt.
|
||||
// FIXME: connection timeouts
|
||||
Strings argv({"ssh", sshName, "-i", sshKey, "-x", "-a", "--", "nix-store", "--serve", "--write"});
|
||||
Strings argv(
|
||||
{ "ssh", sshName, "-i", sshKey, "-x", "-a"
|
||||
, "-oBatchMode=yes", "-oConnectTimeout=60", "-oTCPKeepAlive=yes"
|
||||
, "--", "nix-store", "--serve", "--write" });
|
||||
|
||||
execvp("ssh", (char * *) stringsToCharPtrs(argv).data()); // FIXME: remove cast
|
||||
|
||||
|
|
Loading…
Reference in a new issue