Apache Mina & SFTP

I spent the night with my wonderful sister-in-laws watching some Iron Man 2 and Zoolander, as they’re visiting us for a while. Being that it was my 100th viewing of Blue Steel, I figured I’d toy with a SSH / SFTP Java implementation as Narfdre and I had been discussing it earlier in the day.

To my surprise, it came together quick and easy. ┬áHere’s the quick ‘n’ dirty details to get started, starting with your Maven pom.xml:

… and then a simple test class: