-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Minor
-
Component/s: ssh-slaves-plugin
-
Environment:Core: 2.69
SSH Agents plugin: 1.20
Every reconnect to a SSH agent leads to an additional running sshd process on that agent host.
Example:
- Configure the "In demand delay" of a SSH agent to 1 Minute.
- Connect the agent.
- Wait a minute, so that Jenkins disconnects that agent.
- Run (for instance) ps faux.
- You can find a running sshd process.
- Reconnect the agent and wait, until Jenkins disconnects it.
- RunĀ ps faux again.
- You see, that there is an additional sshd process running.
Edit:
I see, that this happens not all time. If the connection got closed successfully, you can see the following lines in the agent log:
Connection terminated channel stopped Slave JVM has terminated. Exit code=0 [08/10/17 07:52:33] [SSH] Connection closed.
But if I discover the behavior described above, the last two lines (especially the one with Connection closed) are missing:
Connection terminated channel stopped