title: "Auth fail" ( com.jcraft.jsch.JSchException)
body: <p>I  have written an ant script to copy files on local tomcat server (in root directory)  as follows:</p>
  
  <pre><code>&lt;target name="temp"&gt;
       &lt;scp todir="tomcat:tomcat@localhost:8080"&gt;
               &lt;fileset dir="C:\Users\akhilesh.kj\Desktop\Plugin"/&gt;
        &lt;/scp&gt;    
  &lt;/target&gt;
  </code></pre>
  
  <p>I have openSSH on my machine.I dont have much idea how it works.when I am running the above script, I am getting 'auth fail' exception.I have verified that username and password is correct.Below is the log:</p>
  
  <pre><code>         [scp] Connecting to localhost:22
       [scp] Connecting to localhost port 22
       [scp] Connection established
       [scp] Remote version string: SSH-2.0-OpenSSH_3.8.1p1
       [scp] Local version string: SSH-2.0-JSCH-0.1.42
       [scp] CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
       [scp] SSH_MSG_KEXINIT sent
       [scp] SSH_MSG_KEXINIT received
       [scp] kex: server-&gt;client aes128-ctr hmac-md5 none
       [scp] kex: client-&gt;server aes128-ctr hmac-md5 none
       [scp] SSH_MSG_KEXDH_INIT sent
       [scp] expecting SSH_MSG_KEXDH_REPLY
       [scp] ssh_rsa_verify: signature true
       [scp] Permanently added 'localhost' (RSA) to the list of known hosts.
       [scp] SSH_MSG_NEWKEYS sent
       [scp] SSH_MSG_NEWKEYS received
       [scp] SSH_MSG_SERVICE_REQUEST sent
       [scp] SSH_MSG_SERVICE_ACCEPT received
       [scp] Authentications that can continue: publickey,keyboard-interactive,password
       [scp] Next authentication method: publickey
       [scp] Authentications that can continue: keyboard-interactive,password
       [scp] Next authentication method: keyboard-interactive
       [scp] Authentications that can continue: password
       [scp] Next authentication method: password
       [scp] Disconnecting from localhost port 22
  com.jcraft.jsch.JSchException: Auth fail 
  </code></pre>
  
  <p>Please help !</p>
  
  <p>Thanks.</p>