Skip to content

Commit 32a8855

Browse files
committed
Update ssh2 module to support ed25519 private keys (mscdex/ssh2/issues/352)
1 parent e0aa557 commit 32a8855

File tree

3 files changed

+105
-186
lines changed

3 files changed

+105
-186
lines changed

lib/connect.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ exports.one = function(host, options, cb) {
5959
if (options.passphrase)
6060
opts.passphrase = options.passphrase.toString();
6161

62+
console.log(opts);
63+
6264
try {
6365
c.connect(opts);
6466
} catch(e) {
@@ -93,7 +95,7 @@ exports.one = function(host, options, cb) {
9395

9496
c.on('error', function(err) {
9597
if (err.message.match('authentication methods failed') && !options.useKey) {
96-
// console.log('Retrying with key')
98+
console.log('Retrying with key')
9799
options.useKey = true;
98100
return exports.one(host, options, cb);
99101
}

0 commit comments

Comments
 (0)