title: "USERAUTH fail" using gradle-ssh-plugin with identity
body: <p>I can't connect to a SSH host using the <a href="https://gradle-ssh-plugin.github.io/" rel="nofollow">Gradle SSH Plugin</a> with my private key.</p>
  
  <p>Specifying the password in the <code>build.gradle</code> works fine:</p>
  
  <pre><code>remotes {
      webServer {
          host = '&lt;IP&gt;'
          user = '&lt;USER&gt;'
          password = '&lt;PASSWORD&gt;'
      }
  }
  </code></pre>
  
  <p>But to avoid writing my password in the build file, I've set my environment to connect using my private key without entering the password from shell:</p>
  
  <pre><code>ssh &lt;user&gt;@&lt;ip&gt;
  </code></pre>
  
  <p>This command works from the shell but I can't achieve this with the Gradle plugin. This is my configuration:</p>
  
  <pre><code>remotes {
      webServer {
          host = '&lt;IP&gt;'
          user = '&lt;USER&gt;'
          identity = file("${System.getProperty('user.home')}/.ssh/id_rsa")
      }
  }
  </code></pre>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>Caused by: com.jcraft.jsch.JSchException: USERAUTH fail at com.jcraft.jsch.UserAuthPublicKey.start(UserAuthPublicKey.java:119)</p>
  </blockquote>
  
  <p>Since I'm able to connect from the shell, what's wrong with my configuration?</p>