com.jcraft.jsch.JSchException:验证失败

问题描述 投票:2回答:2

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

我确定用户名和密码正确。因为在重新启动上传线程后无需修改配置,就可以上传任何文件。

此异常是否可能是由于我的机器和服务器之间的网络故障引起的?还是任何其他原因?

java jsch
2个回答
2
投票

EGit(甚至最新版本3.3.2)在JRE 1.8中无法正常工作。将JRE降级到1.7,此错误将消失。


0
投票

[抱歉,s difficult to understand. My jenkins user can enter to 1.2.3.4 thrue terminal with my pem key. Also I add to credentials my pem key and user. On 1.2.3.4 server I have myUser with .ssh/authorized_keys. So it s已连接通孔端子。但是为什么它不能与管道一起使用?

© www.soinside.com 2019 - 2024. All rights reserved.