Bamboo SCP/SSH Task - Hanging sshd connections on remote agent

Glenn Attridge July 26, 2012

After running these tasks I noticed open sshd processes left running on my remote machine.

root 14557 1901 0 Jul23 ? 00:00:00 sshd: root@notty

root 14628 1901 0 Jul23 ? 00:00:00 sshd: root@notty

root 15025 1901 0 Jul23 ? 00:00:00 sshd: root@notty

root 15092 1901 0 Jul23 ? 00:00:00 sshd: root@notty

root 15687 1901 0 Jul23 ? 00:00:00 sshd: root@notty

root 15754 1901 0 Jul23 ? 00:00:00 sshd: root@notty

root 18606 1901 0 Jul24 ? 00:00:00 sshd: root@notty

root 18673 1901 0 Jul24 ? 00:00:00 sshd: root@notty

root 22592 1901 0 Jul24 ? 00:00:00 sshd: root@notty

root 22659 1901 0 Jul24 ? 00:00:00 sshd: root@notty

root 23359 1901 0 Jul24 ? 00:00:00 sshd: root@notty

root 23426 1901 0 Jul24 ? 00:00:00 sshd: root@notty

root 24156 1901 0 Jul24 ? 00:00:00 sshd: root@notty

root 24223 1901 0 Jul24 ? 00:00:00 sshd: root@notty

root 30061 1901 0 Jul25 ? 00:00:00 sshd: root@notty

root 30128 1901 0 Jul25 ? 00:00:00 sshd: root@notty

Wonder if anyone else is experiencing the same issue?

2 answers

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 30, 2012

This looks like a bug, the SSH sessions are not closed. The code is very simple - you can give a shot at fixing it at https://bitbucket.org/i386/bamboo-scp-plugin and submit a pull request for the author.

Jürgen Jatzkowski July 30, 2012

http://www.symphonious.net/2007/10/23/ant-scpssh-task-hangs-or-never-disconnects/

I will try 2nd alternative (already configured) and watch out if the hanging sessions go away...

Heather Wells February 25, 2013

I tried the 2nd alternative from above but still have 2 open sshd processes left behind for every SCP or SSH task that runs.

0 votes
Jürgen Jatzkowski July 29, 2012

Same for me. I'm just wondering if there is solution for this or if I have to figure this out by myself ;)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events