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

This widget could not be displayed.

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

This widget could not be displayed.

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

487 views 3 18
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