kopia lustrzana https://github.com/c9/core
link to github
rodzic
ab77213c47
commit
24748e5f53
|
@ -18,6 +18,7 @@ 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
|
||||||
|
@ -148,9 +149,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) {
|
||||||
// console.log("out >> " + stdout);
|
debug("out >> " + stdout);
|
||||||
// console.log("err >> " + stderr);
|
debug("err >> " + stderr);
|
||||||
// console.log(err);
|
debug(err);
|
||||||
callback(null, !stderr.match(/Permission denied \(.*publickey/));
|
callback(null, !stderr.match(/Permission denied \(.*publickey/));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "c9",
|
"name": "c9",
|
||||||
"description": "New Cloud9 Client",
|
"description": "New Cloud9 Client",
|
||||||
"version": "3.0.2385",
|
"version": "3.0.2384",
|
||||||
"author": "Ajax.org B.V. <info@ajax.org>",
|
"author": "Ajax.org B.V. <info@ajax.org>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "bin/c9",
|
"main": "bin/c9",
|
||||||
|
|
Ładowanie…
Reference in New Issue