From 6dfec5299bd5694e1034c19fb1fdf4e7500dddc7 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 17 Aug 2015 09:15:08 +0000 Subject: [PATCH] fix ssh check --- node_modules/c9/ssh.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/node_modules/c9/ssh.js b/node_modules/c9/ssh.js index 7d8f7917..833b9365 100644 --- a/node_modules/c9/ssh.js +++ b/node_modules/c9/ssh.js @@ -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/)); }); };