SFTP for Java
Zehon SFTP Samples
Simple Samples
-
SFTP Upload A File
A simple sample demonstrating how to upload a file using SFTP.
-
SFTP Upload A File -Retain Original Last Modification Time
A simple sample demonstrating how to upload a file using SFTP.
-
SFTP Upload From An InputStream
A simple sample demonstrating how to upload a file represented by an InputStream using SFTP.
-
SFTP Download A File
A simple sample demonstrating how to download a file using SFTP.
-
SFTP Download To An InputStream
A simple sample demonstrating how to download a file to an InputStream using SFTP.
-
SFTP Download A Folder
A simple sample demonstrating how to download a folder recursively to a local folder using SFTP.
-
SFTP Upload A Folder
A simple sample demonstrating how to upload a folder recursively to a remote folder using SFTP.
-
SFTP Copy A File
A simple sample demonstrating how to copy a file on the SFTP server.
-
SFTP Copy A Folder
A simple sample demonstrating how to copy a folder (recursively) on the SFTP server.
-
SFTP Move A File
A simple sample demonstrating how to move a file on the SFTP server.
-
SFTP Move A Folder
A simple sample demonstrating how to move a folder on the SFTP server.
-
SFTP Close Cache to clean up
A simple sample demonstrating how to do cache clean up.
-
SFTP Transfer Files in batch with monitor
A simple sample demonstrating how to do upload files in batch using monitoring.
-
SFTP Use Private Key For Authentication
A simple sample demonstrating how to use private key to authenticate with an SFTP server.
-
SCP Download To A File
A simple sample demonstrating how to download a file using SCP.
-
SCP Upload To A File
A simple sample demonstrating how to upload a file using SCP.