Bamboo Backup Export Failure
Asked by SAMARTH SAXENA:

```
Running pre-build action: Artifactory Release Stagingsimple	02-Apr-2018 02:40:40	Running pre-build action: VCS Version Collectorsimple	02-Apr-2018 02:40:40	Starting task 'Amend permissions of backups' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask'simple	02-Apr-2018 02:40:40	Connecting to bamboo-0 on port: 22error	02-Apr-2018 02:40:40	Failed to connect to hosterror	02-Apr-2018 02:40:40	net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methodserror	02-Apr-2018 02:40:40		at net.schmizz.sshj.SSHClient.auth(SSHClient.java:230)error	02-Apr-2018 02:40:40		at net.schmizz.sshj.SSHClient.authPublickey(SSHClient.java:345)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.plugins.scp.SshTask.execute(SshTask.java:109)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:284)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:223)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:284)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:111)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:71)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:185)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:120)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:113)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:113)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:47)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)error	02-Apr-2018 02:40:40		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)error	02-Apr-2018 02:40:40		at java.lang.Thread.run(Thread.java:748)simple	02-Apr-2018 02:40:40	Finished task 'Amend permissions of backups' with result: Errorsimple	02-Apr-2018 02:40:40	Starting task 'Copy bamboo backup to google storage' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask'simple	02-Apr-2018 02:40:40	Connecting to bamboo-0 on port: 22error	02-Apr-2018 02:40:40	Failed to connect to hosterror	02-Apr-2018 02:40:40	net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods
```


Answers:
author: MoroSystems Support
body: Hi,

You have problem with connect to host.

Can you check connecting from agent to remote host?

* telnet host-DNS port(22)

Did you add a private key to SSH task in build plan and public key to a remote guest?

Have a nice day