DiscordInjections / Plugins-ThisIsCompletlyDeprecatedDontUseOrElseYouWillBeIgnored-

A collection of plugins
19 stars 13 forks source link

Update SSH #56

Closed aetheryx closed 7 years ago

aetheryx commented 7 years ago

Information

Plugin Name: SSH DI Version Tested On: 3.2.1 Original Author (mention if applicable): @kev1ns

Systems Tested On

Client:

OS:

Plugin Changes

Fixed the syntax for fs.readFileSync, which is used when a private key is used. Before this fix, because the syntax error was in a try-catch, the ssh command was silently failing (when used with a private key), being displayed as "all configured authentication methods failed".

In addition to fixing usage with private keys, the password key for the configs will be used as a passphrase to decrypt the private key if a private key is specified.

The dependencies have also been added, so users don't need to manually npm i node-ssh.

Additional Comments

Consent for this PR has been granted by @kev1ns.