You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did try to run a lot of examples using sshj scp file transfer.
I was able to transfer files from local to remote.
But I can't find how to get info about the progress.
All the examples I found are based on old versions of sshj, and a lot of the things are not available anymore.
For example
SCPFileTransfer scp = ssh.newSCPFileTransfer();
StreamCopier.Listener listener = new StreamCopier.Listener() {...}
scp.upload(new FileSystemFile(localPath.toFile()), remoteDirPath + "/" + localPath.getFileName(), listener);
The latest version of sshj does not have a listener parameter for the upload method.
There are many other similar things.
What is happening?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I did try to run a lot of examples using sshj scp file transfer.
I was able to transfer files from local to remote.
But I can't find how to get info about the progress.
All the examples I found are based on old versions of sshj, and a lot of the things are not available anymore.
For example
SCPFileTransfer scp = ssh.newSCPFileTransfer();
StreamCopier.Listener listener = new StreamCopier.Listener() {...}
scp.upload(new FileSystemFile(localPath.toFile()), remoteDirPath + "/" + localPath.getFileName(), listener);
The latest version of sshj does not have a listener parameter for the upload method.
There are many other similar things.
What is happening?
Beta Was this translation helpful? Give feedback.
All reactions