How to FTP File using UNIX SFTP in Java


This article demonstrates how to use native Unix sftp command in Java. The codes on this article essential invoke the command:

Software Environment

  • Windows 7 Professional SP1
  • Eclipse – Kepler Release
  • Java 1.7 (1.7.0_67 – Windows x86)
  • Unix or Linux OS with sftp installed

The Codes

Get the Codes

Karl San Gabriel

Karl San Gabriel

Java and Enterprise Technologies Expert