Note: this code is not used, the jsch-plugin used by Rundeck is part of https://github.com/rundeck/rundeck
This is a node executor / File Copier plugin based on JSCH library
This code was extracted from the Rundeck core, and is the standalone version of the same plugin that is built-in and shipped with Rundeck.
./gradlew clean && ./gradlew build
cp build/libs/jsch-plugin-x.x.x.jar $RDECK_BASE/libext
This plugin is a standalone version of the JSCH plugin that comes built into Rundeck. The JSCH documentation applies to this plugin.
Go to Project Settings > Edit Configuration
to set the JSCH plugin at project level
Use node-executor
and file-copier
node attributes to use SSHJ plugin at node level.
Demo-Ubuntu:
nodename: Demo-Ubuntu
hostname: 192.168.100.18
description: Ubuntu 20
username: samuel
osFamily: unix
node-executor: jsch-ssh
file-copier: jsch-scp
tags: ubuntu
ssh-authentication: password
ssh-password-storage-path: keys/node/samuel.password
sudo-password-storage-path: keys/node/sudo.password
ssh-password-option: option.password
sudo-command-enabled: 'true'