Yosh Magaña
Yosh Magaña
I have tried transferring a 5.4GB file via SFTP from server A to server B, via the OpenSSH SFTP client in a shell script, a small Java application using the...
Here is my sshj-relevant lines implementation, no BufferedStreams: ``` this.sshClient = new SSHClient(); this.sshClient.addHostKeyVerifier(new PromiscuousVerifier()); this.sshClient.useCompression(); this.sshClient.connect(host, port); this.sshClient.authPassword(user, password); this.sftpClient = this.sshClient.newSFTPClient(); this.sftpClient.get(ftpFile, localFile); ```
> And without compression? I just tried and it took 7 minutes 22 second. Even though I can't understand why without compression it is faster than with compression (opposite to...
> @fire2 If I try to use compression I see a decrease in speed in both implementations - sshj and OpenSSH. For me the OpenSSH implementation takes 3m 04s without...
Hmm, I don't understand. Why is the library then using less bandwidth? I am running all tests on the same machine.
> Getting same > > request = given() .headers(headers) .headers("X-Api-Client", "NFAqxq7d7") .headers("x-service-id", "cacq_collective_appctx") .headers("Content-type",MULTIPART_FORM_DATA_VALUE) .multiPart("files", new File("resources/properties/test.txt")) .multiPart("fileMetaData", metaData); > > Error - Cannot serialize because cannot determine how to...