Hi all,
I've been upgrading an old Java 5 servlet using j2ssh to Java 8 with sshj. 15 of the 16 servers are working perfectly. For one of the servers, when I do a simple get to download a file, I get an IOException No such file. It's connecting fine. I've even been able to successfully upload a file to the same server. When I run the old code using j2ssh from my same Tomcat server, it works fine. Could it be different compression or keyexchange algorithm or something? Please any direction on this would be very helpful. At this point I don't know how else to debug this.
Below is some example code.
SSHClient ssh = new SSHClient();
ssh.loadKnownHosts();
ssh.connect(host, port);
ssh.authPassword(user, pass);
final SFTPClient client = ssh.newSFTPClient();
client.get(request.getParameter(REMOTE_DEST), localFile);