Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
Description
This concerns the SCP and SSH tasks plugin.
After a succesfull run of a command by SSH the command completes correctly by the sshd process on the remote server never exits.
Also see Atlassian Answers: Bamboo SCP/SSH Task - Hanging sshd connections on remote agent.
As far as I can see it both in SshTask.java and in ScpTask.java a connection is build to a (remote) sshd with "ssh.connect(host, portNumber);". "ssh" being a "SSHClient" object.
This connection is never (properly) disconnected with a corresponding "ssh.disconnect".
This might cause the described behaviour.