Bamboo SCP Task failing to upload to Windows Server

My Bamboo is configured on Linux Server and I am trying to upload files(Artifacts) to Windows server using Bamboo's inbuilt task "SCP Task". This is task is configured in deployment project which will run after a successful build.

In SCP Task, I have correctly entered the Host IP Address, Password and Remote path.

The default port is connecting to is 22. I have also opened the port 22 on windows server as TCP and currently allowing all connection.

When I run my deployment the following error is thrown "Server closed connection during identification exchange".

Failed to connect to host
net.schmizz.sshj.transport.TransportException: Server closed connection during identification exchange
at net.schmizz.sshj.transport.TransportImpl.init(
at net.schmizz.sshj.SSHClient.onConnect(
at net.schmizz.sshj.SocketClient.connect(
at net.schmizz.sshj.SocketClient.connect(
at com.atlassian.bamboo.plugins.scp.ScpTask.execute(
at com.atlassian.bamboo.plugins.scp.ScpTask.execute(
at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$123(
at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(
at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(
at com.atlassian.bamboo.task.TaskExecutorImpl.execute(

 Any Suggestions? Am I missing something?

1 answer

0 vote

Hi Gagan,

  • What version of Bamboo are you using?
  • What path are you using and does it start with \?
  • What ssh server are you running on Windows?
  • Do you have a firewall and if so does disabling it help?
  • Do you see any logs on the Windows side?

I would check the logs on the Windows side and enable debugging if possible.  In addition, enable debug logging in Bamboo: = DEBUG to Bamboo log4j 

Reproduce the issue and post and relevant logs here.



Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,586 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