Plugin Name: SSH
DI Version Tested On: 3.2.1
Original Author (mention if applicable): @kev1ns
Systems Tested On
Client:
[X] Stable
[ ] PTB
[X] Canary
[ ] Development
OS:
[X] Windows
[ ] Mac
[X] Linux (Gentoo)
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.
Information
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.