We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
I'm trying to download a file via sftp using your library (v. 0.38.0) My code is this:
try (SSHClient client = new SSHClient(); ){ client.addHostKeyVerifier(new PromiscuousVerifier()); client.setConnectTimeout(60000); client.connect(remoteHost, port); //timeout here client.useCompression(); client.authPassword(username, password); try (SFTPClient sftpClient = client.newSFTPClient();) { sftpClient.get(this.remoteDir+"/"+fileName ,this.localDir); } client.disconnect(); }
calling the connect method waits until the timeout occurs:
net.schmizz.sshj.transport.TransportException: Timeout expired: 30000 MILLISECONDS
entering the code in debug I noticed that it stops in the net.schmizz.sshj.transport.KeyExchanger class at line 160: waitForDone();
Can you give me some suggestions? Thank you Luca
The text was updated successfully, but these errors were encountered:
老哥,问题解决了吗?请教一下怎么设置让执行时间过长的命令终止掉?
Sorry, something went wrong.
No branches or pull requests
Hi
I'm trying to download a file via sftp using your library (v. 0.38.0)
My code is this:
calling the connect method waits until the timeout occurs:
net.schmizz.sshj.transport.TransportException: Timeout expired: 30000 MILLISECONDS
entering the code in debug I noticed that it stops in the net.schmizz.sshj.transport.KeyExchanger class at line 160:
waitForDone();
Can you give me some suggestions?
Thank you
Luca
The text was updated successfully, but these errors were encountered: