How to delete folder recursively on remote server using SFTP in java?

How to delete folder recursively on remote server using SFTP in java?
DeeKay January 5, 2017 at 3:46 am · How To, SFTP

Deleting or removing a folder recursively on the remote server in java is easy using JSCH (SFTP) API. Nowadays it is a common use case in software projects where you need to delete or remove a folder from the remote server using SFTP connection. Below java code shows you how you can delete or remove…
Continue Reading »


How to delete file on remote server using SFTP in java?

How to delete file on remote server using SFTP in java?
DeeKay January 5, 2017 at 2:41 am · How To, SFTP

Deleting or removing a file on remote server in java is easy using JSCH (SFTP) api. Now-a-days it is a common use case in software projects where you need to delete a file from the remote server using SFTP connection. JSch is a pure Java implementation of SSH2 (We can use SFTP Channel). JSch allows…
Continue Reading »


Java Program For Uploading Folder Content recursively from local to SFTP Server

Java Program For Uploading Folder Content recursively from local to SFTP Server
DeeKay December 29, 2016 at 3:55 am · How To, SFTP

Java program for uploading the content of a local machine directory or folder to SFTP server is not straight forward. If we use JSCH API┬áfor SFTP upload then you cannot use channelSftp.put(new FileInputStream(sourceFile), sourceFile.getName(), ChannelSftp.OVERWRITE); method. This channelSftp.put() method will work for single file upload but you cannot use it for folder upload. Below Java…
Continue Reading »


Java Program For Downloading Folder Content recursively from SFTP Server

Java Program For Downloading Folder Content recursively from SFTP Server
DeeKay December 28, 2016 at 4:56 am · How To, SFTP

How to download folder from SFTP Server (Secure File Transfer Protocol) is the common use case for Java developer who wants to download folder from SFTP. To write a java program to download from SFTP, you will need to download JSCH┬ájar file. For other SFTP operations in java, please refer below posts on Kodehelp.com –…
Continue Reading »