node-red-contrib-ssh-v2-reconnection

0.0.2 • Public • Published

node-red-contrib-ssh-v2

Available on NPM as https://www.npmjs.com/package/node-red-contrib-ssh-v2-reconnection
Based on https://github.com/yroffin/node-red-contrib-ssh which does not seem to be maintained.

Why?

I added this so I could turn on my linux HTPC via Alexa, triggering a WOL packet and then turn it off using SSH.
That's why SSH reconnection was important.

Changelog

  • fix unusable ssh key config
  • add reconnection attempts to the ssh client

Usage

Input: msg.payload has to contain the command.
Output: none

Configuration

  • Ssh: ssh key path (optional but recommended)
  • Hostname: address of the target SSH server
  • Name: name of the node
  • Username: username of the target SSH server
  • Password: password of the target SSH server (set this if not using ssh key)

To-Do (help wanted)

  1. Add feature to reuse hosts/accounts instead of having to re-add every time
  2. Add output so that other nodes can consume the result
  3. Add option to consume more information(e.g. hostname) from other node

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    142
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    142
  • 0.0.1
    1

Package Sidebar

Install

npm i node-red-contrib-ssh-v2-reconnection

Weekly Downloads

52

Version

0.0.2

License

MIT

Unpacked Size

9.12 kB

Total Files

5

Last publish

Collaborators

  • olivervbk