SSH task does not work with pounds symbol £ password

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Summary

      If the user password contain pounds symbol (£), Bamboo SSH task will fail to connect

      Environment

      • Windows Server 2016
      • Cygwin OpenSSH

      Steps to Reproduce

      1. Install Cygwin OpenSSH in a Windows machine
      2. Create Windows local user account with pounds symbol (£) in the password
      3. Use Bamboo SSH task to perform SSH command with the above user and password

      Expected Results

      The build will finish successfully

      Actual Results

      The build fail with the following exception:

      simple	07-Dec-2016 23:09:38	Starting task 'SSH Task' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask'
      simple	07-Dec-2016 23:09:38	Connecting to 54.169.72.9 on port: 22
      error	07-Dec-2016 23:09:38	Failed to connect to host
      error	07-Dec-2016 23:09:38	net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods
      error	07-Dec-2016 23:09:38		at net.schmizz.sshj.SSHClient.auth(SSHClient.java:232)
      error	07-Dec-2016 23:09:38		at net.schmizz.sshj.SSHClient.auth(SSHClient.java:208)
      error	07-Dec-2016 23:09:38		at net.schmizz.sshj.SSHClient.authPassword(SSHClient.java:293)
      error	07-Dec-2016 23:09:38		at net.schmizz.sshj.SSHClient.authPassword(SSHClient.java:263)
      error	07-Dec-2016 23:09:38		at net.schmizz.sshj.SSHClient.authPassword(SSHClient.java:247)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.plugins.scp.SshTask.execute(SshTask.java:99)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:317)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:246)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:317)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:215)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:221)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:137)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      error	07-Dec-2016 23:09:38		at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      error	07-Dec-2016 23:09:38		at java.lang.Thread.run(Thread.java:745)
      

      Notes

      Same problem happens when performing SSH task into a Linux machine with a user that have pounds in the password

            Assignee:
            Unassigned
            Reporter:
            Foong (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: