简体   繁体   中英

com.jcraft.jsch.JSchException: Auth fail

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?

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.

Refer to the fix at https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/458#issuecomment-564670250

        <plugin>
            <groupId>pl.project13.maven</groupId>
            <artifactId>git-commit-id-plugin</artifactId>
            <configuration>
                <offline>true</offline>
                <useNativeGit>true</useNativeGit>
            </configuration>
        </plugin>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM