How to download and Upload a file through SFTP using java.

Here is a code example that shows how to download and upload a file through SFTP in java

Download File

 

Upload File

6 thoughts on “How to download and Upload a file through SFTP using java.”

  1. com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read

    I got this exception while connecting to session..

    any resolution for this?

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: