我使用 sshxcute 从 java 连接到 unix 服务器。
连接时出现以下错误:
JschException:身份验证失败
请让我知道可能是什么问题。
这是我使用的伪代码:
SSHExec ssh= null;
ConnBean cb = new ConnBean("servername","username","password");
SSHExec.getInstance(cb)
ssh.connect();
ssh.disconnect();
另外请让我知道是什么原因造成的?