com.jcraft.jsch.JSchException:验证失败 [英] com.jcraft.jsch.JSchException: Auth fail

查看:561
本文介绍了com.jcraft.jsch.JSchException:验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从本地磁盘上载文件到远程服务器时,发生了这样的异常: com.jcraft.jsch.JSchException: Auth fail at org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:215)

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(甚至最新版本3.3.2)在JRE 1.8中也无法正常使用.将JRE降级到1.7,此错误将消失.

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.

这篇关于com.jcraft.jsch.JSchException:验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆