Hi, I'm new to RunDeck, I have a simple job, which it seems to re-establish an SSH connection for every step, and twice if its a script, is there a way to run the job on on SSH connection ?
And there seems to be an exception thrown ?
So I have 15 steps, some are just making echo commands like this:
echo Starting
But when I look at the log i see:
| 05:14:22 | Starting SSH Connection: x...@xx.xxx.xxx.xx (xxxxxxxxxxxx.net)
|
| 05:14:22 | Connecting to xx.xxx.xxx.xx:22 |
| 05:14:22 | Connecting to xx.xxx.xxx.xx port 22 |
| 05:14:22 | Connection established |
...
| 05:14:22 | Permanently added 'xx.xxx.xxx.xx' (RSA) to the list of known hosts. |
| 05:14:22 | SSH_MSG_NEWKEYS sent |
| 05:14:22 | SSH_MSG_NEWKEYS received |
| 05:14:22 | SSH_MSG_SERVICE_REQUEST sent |
| 05:14:22 | SSH_MSG_SERVICE_ACCEPT received |
| 05:14:22 | Authentications that can continue: publickey,keyboard-interactive,password |
| 05:14:22 | Next authentication method: publickey |
| 05:14:22 | Authentication succeeded (publickey). |
| 05:14:22 | Adding reference: ant.PropertyHelper |
| 05:14:22 | Setting project property: sshexec.output -> Publish Starting |
05:14:22
| Disconnecting from xx.xxx.xxx.xx port 22 |
05:14:22
| Caught an exception, leaving main loop due to Socket closed |
...
| 05:15:41 | Starting SSH Connection: x...@1xx.xxx.xxx.xx (xxxxxxxxxxxx.net) |
...
| 05:15:42 | Disconnecting from xx.xxx.xxx.xx port 22 |
| 05:15:42 | Caught an exception, leaving main loop due to Socket closed |
Its a similar output for each step (twice for steps which are scripts), where the only difference is the output related to what the step is doing.
There are 15 steps, (2 of which are scripts), so there are 18 SSH connections established in this job.
Is it possible to only use one SSH connection for the whole job ? does Log level set to DEBUG affect this ?