build-remote: Fix passing SSH key

This commit is contained in:
Eelco Dolstra 2017-03-03 16:33:18 +01:00
parent 5a1fb03b8f
commit 7f62be1bcd
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -233,7 +233,7 @@ int main (int argc, char * * argv)
lock = -1;
try {
sshStore = openStore("ssh://" + bestMachine->hostName + "?key=" + bestMachine->sshKey);
sshStore = openStore("ssh://" + bestMachine->hostName + "?ssh-key=" + bestMachine->sshKey);
hostName = bestMachine->hostName;
} catch (std::exception & e) {
printError("unable to open SSH connection to %s: %s; trying other available machines...",