问题
While I upload a file from local disk to a remote server,such exception occured:
com.jcraft.jsch.JSchException: Auth fail
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:215)
I am sure that the userid and password is correct.Because I can upload any file after I restart the upload thread without modify configuration.
Is it possible that this exception is caused by bad network between my machine and server?Or any other cause?
回答1:
EGit (even latest version 3.3.2) does not work properly with JRE 1.8. Downgrade JRE to 1.7 and this error will disappear.
来源:https://stackoverflow.com/questions/16642204/com-jcraft-jsch-jschexception-auth-fail