@Zachary
If you want to use an OpenSSH configuration file
(~/.ssh/config by default), don't use jsch-ssh (which is just an
implementation of SSH AFAIK, not an implementation of OpenSSH). Use pure
OpenSSH "
ssh" and "
scp" commands :
Option 1: at the node definition level (
http://rundeck.org/docs/plugins-user-guide/script-plugin.html)
mynode:
node-executor: script-exec
script-exec-shell: bash -c
script-exec: ssh -o "some quoted option" ${node.username}@${node.hostname} ${exec.command}
Option 2: Set the option globally at the Project level. This is what i personally use on my projects:
-
Default Node Executor
The Node Executor is responsible for executing commands and scripts on remote nodes.
Script Execution
Delegates command execution to an external script. Can be configured project-wide or on a per-node basis.
Command:
/usr/bin/ssh ${node.username}@${node.hostname} ${exec.command}
-
Default File Copier
The File Copier is responsible for copying scripts as files to remote nodes before they are executed.
Script Execution
Delegates file copying to an external script. Can be configured project-wide or on a per-node basis.
Command:
/usr/bin/scp ${file-copy.file} ${node.username}@${node.hostname}:${file-copy.destination}
Rq1: if your config file is not at the default location, use
ssh -F <path_to_your_ssh_config_file> ...)
Rq2: as you can see above in option 2, you can put ssh and/or scp with their absolute path if you want/need (ex:
/usr/bin/ssh ...)
Kofi.