Skip to content

Commit

Permalink
Update ssh2 module to support ed25519 private keys (mscdex/ssh2/issue…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas committed Jun 26, 2019
1 parent e0aa557 commit 32a8855
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 186 deletions.
4 changes: 3 additions & 1 deletion lib/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ exports.one = function(host, options, cb) {
if (options.passphrase)
opts.passphrase = options.passphrase.toString();

console.log(opts);

try {
c.connect(opts);
} catch(e) {
Expand Down Expand Up @@ -93,7 +95,7 @@ exports.one = function(host, options, cb) {

c.on('error', function(err) {
if (err.message.match('authentication methods failed') && !options.useKey) {
// console.log('Retrying with key')
console.log('Retrying with key')
options.useKey = true;
return exports.one(host, options, cb);
}
Expand Down
Loading

0 comments on commit 32a8855

Please sign in to comment.