kopia lustrzana https://github.com/c9/core
Merge pull request +8737 from c9/use-open-for-repos
Use open for repospull/134/head
commit
b8cb07d9e7
|
@ -18,6 +18,7 @@ exports.buildArgs = function(prvkeyFile, host) {
|
|||
"-o", "IdentityFile=" + prvkeyFile,
|
||||
"-o", "UserKnownHostsFile=/dev/null",
|
||||
"-o", "StrictHostKeyChecking=no",
|
||||
"-o", "IdentitiesOnly=yes",
|
||||
"-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
|
||||
// when the local ssh process is killed
|
||||
|
@ -148,9 +149,9 @@ exports.generateKeyPair = function(email, callback) {
|
|||
|
||||
exports.validateSSHKey = function(prvkey, host, callback) {
|
||||
exports.exec(prvkey, host, "", [], function(err, stdout, stderr) {
|
||||
// console.log("out >> " + stdout);
|
||||
// console.log("err >> " + stderr);
|
||||
// console.log(err);
|
||||
debug("out >> " + stdout);
|
||||
debug("err >> " + stderr);
|
||||
debug(err);
|
||||
callback(null, !stderr.match(/Permission denied \(.*publickey/));
|
||||
});
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue