Skip to content
Andrew McMurtrie edited this page Nov 11, 2016 · 12 revisions

Change log:

v1.7.0 Major rework of command functions, improved false positive prompt detection due to command or output containing prompt characters, multi host ssh connectability test to detect inaccessable hosts, multi host ssh command options added to next host ssh connect command, ssh command options settable via host.server.ssh, tweeks to debug and verbose messages.

v1.6.2 Added pipe, unpipe and associated events along with ssh2shell.on("data") event which exposes the streamRead.on("data") event. This gives external access to the stream output directly, nothing else interacting with it. Added callback handling through ssh2shell.connect(callback). Added host.onKeyboardInteractive event function definition. Enabled this keyword to be correctly bound to the instance object within host event definitions. Fixed timeout and tunneling issues. Added or edited test files and readme. Gave examples for setting cipher and key defaults.

v1.5.1 Enabled access to all ssh2.connect parameters in host.server. Added fingerprint validation method to readme. Enabled onError handler to be added to host object and updated readme with its definition.

v1.4.1 Fixed prompt detection when no password is required for sudo.

v1.3.9 Added a more robust console garbage character collection and altered if statement structure for password prompt checks.

v1.3.5 Added new test file for sudo and su commands, also added > to command prompt detection.

  • Updated readme with new sudo information.

v1.3.1 Minor fix to add buffer to sessionText when SSH authentication failed and raised an error event if closed event error.

  • Updates to readme.

v1.3.0 Class extends EventEmitter to add event handlers to the instance.

  • Enables adding event handlers to the class instance not just to the host objects.
  • Additional instance event handlers are run on all hosts in addition to the default handlers.
  • Fully backward compatible.
  • Updated readme with new detail.

v1.2.3 Added command idle time out.

  • Closes the connection when a command requires a response from the session that is not handled causing it to wait indefinitely. When triggered the onEnd callback is called with the command response added to the sessionText so you can see what caused the time out.

v1.2.0 Added nested hosts for better SSH tunnelling.

  • Added sshObj.hosts array to store nested host configuration objects.
  • Removed sshObj.server.sudoPassword
  • Added ssh command to core code instead of manually adding it to sshObj.commands array and handling it in onCommandProcessing.
  • Added sshObj.debug boolean setting to output process information and password info for failed authentication.

v1.1.0 Added authentication failure handling for sudo.

v1.0.0 Initial release of ssh2 shell handling code as a class weapper.

Clone this wiki locally