scp via java
What is the best method of performing an scp transfer via the Java programming language? It seems I may be able to perform this via JSSE, JSch or the bouncy castle java libraries. None of these solutions seem to have an easy answer. Tim Howland I ended up using Jsch - it was pretty straightforward, and seemed to scale up pretty well (I was grabbing a few thousand files every few minutes). shikhar plug: sshj is the only sane choice! See these examples to get started: download , upload . Take a look here That is the source code for Ants' SCP task. The code in the "execute" method is where the