kopia lustrzana https://github.com/c9/core
Revert "Use open for repos"
rodzic
8aaeb41ef9
commit
8c86f46c25
|
@ -18,7 +18,6 @@ exports.buildArgs = function(prvkeyFile, host) {
|
||||||
"-o", "IdentityFile=" + prvkeyFile,
|
"-o", "IdentityFile=" + prvkeyFile,
|
||||||
"-o", "UserKnownHostsFile=/dev/null",
|
"-o", "UserKnownHostsFile=/dev/null",
|
||||||
"-o", "StrictHostKeyChecking=no",
|
"-o", "StrictHostKeyChecking=no",
|
||||||
"-o", "IdentitiesOnly=yes",
|
|
||||||
"-F", "/dev/null", // use empty config file to not depend on local settings
|
"-F", "/dev/null", // use empty config file to not depend on local settings
|
||||||
// force pseudo terminal to make sure that the remote process is killed
|
// force pseudo terminal to make sure that the remote process is killed
|
||||||
// when the local ssh process is killed
|
// when the local ssh process is killed
|
||||||
|
@ -149,9 +148,9 @@ exports.generateKeyPair = function(email, callback) {
|
||||||
|
|
||||||
exports.validateSSHKey = function(prvkey, host, callback) {
|
exports.validateSSHKey = function(prvkey, host, callback) {
|
||||||
exports.exec(prvkey, host, "", [], function(err, stdout, stderr) {
|
exports.exec(prvkey, host, "", [], function(err, stdout, stderr) {
|
||||||
debug("out >> " + stdout);
|
// console.log("out >> " + stdout);
|
||||||
debug("err >> " + stderr);
|
// console.log("err >> " + stderr);
|
||||||
debug(err);
|
// console.log(err);
|
||||||
callback(null, !stderr.match(/Permission denied \(.*publickey/));
|
callback(null, !stderr.match(/Permission denied \(.*publickey/));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue