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

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

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

0 vote

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.

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...

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published Apr 19, 2018 in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

366 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you