Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

com.jcraft.jsch.JSchException: Auth fail

Tags:

java

jsch

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?

like image 506
mojiayi Avatar asked Jun 12 '26 14:06

mojiayi


1 Answers

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.

like image 121
Igor Avatar answered Jun 14 '26 05:06

Igor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!