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 votes

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 Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

325 views 0 1
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