Add ssh-agent startup when privkey is used#26
Add ssh-agent startup when privkey is used#26sreboot wants to merge 1 commit intorundeck-plugins:masterfrom
Conversation
|
Can someone pls comment on this PR - any issues merging this? |
|
This is a good change but could it be made configurable so that nodes that don't require it don't incur the overheads of using it? |
|
@richiereynolds thanks for the feedback, lemme refactor this with the on/off switch. |
This change will: - start ssh-agent when privkey auth is used - add the key to ssh-agent - cleanup the agent once the job is over Useful for scenarios where Rundeck executes a job where further SSH authentication/connection is required (example: rsync).
|
Updated witch checkbox configuration option - default is off. |
|
@richiereynolds let me know please if this looks OK? Thanks |
|
@stagrlee @gschueler who is maintaining this repo? |
|
Hi @sreboot Thanks |
|
Sorry for the late reply, this is actually not a job specific feature but rather defined as a check-box on the Project level. By default the check-box is not selected. The agent forwarding can be enabled in the Project settings under the "Default Node Executor" tab as displayed on this screenshot: If the option is selected it will be picked up by https://github.com/rundeck-plugins/openssh-node-execution/pull/26/files#diff-39297066fbdfdbea1d016e8078109fdb2a74eb98b56291d8532de8fc364637e0R91 Hope this is enough information do describe this change. |

This change will:
Useful for scenarios where Rundeck executes a job where further SSH
authentication/connection is required (example: rsync).