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(TransportImpl.java:170) at net.schmizz.sshj.SSHClient.onConnect(SSHClient.java:683) at net.schmizz.sshj.SocketClient.connect(SocketClient.java:54) at net.schmizz.sshj.SocketClient.connect(SocketClient.java:80) at com.atlassian.bamboo.plugins.scp.ScpTask.execute(ScpTask.java:264) at com.atlassian.bamboo.plugins.scp.ScpTask.run(ScpTask.java:127) at com.atlassian.bamboo.plugins.scp.ScpTask.execute(ScpTask.java:112) at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$123(TaskExecutorImpl.java:265) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:265) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)
Any Suggestions? Am I missing something?
I would check the logs on the Windows side and enable debugging if possible. In addition, enable debug logging in Bamboo:
log4j.logger.net.schmizz.sshj = DEBUG to Bamboo log4j
Reproduce the issue and post and relevant logs here.
I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events