I\'m trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this?
A nice abstraction on top of Jsch is Apache commons-vfs which offers a virtual filesystem API that makes accessing and writing SFTP files almost transparent. Worked well for us.