问题 I'm creating a java program which does a lot over ssh. In my program, I need to be able to run methods such as "listFiles()" on a remote host. I also need to be able to run a couple commands from Apache Commons io (I'm using the "FileUtils" class). I've seen programs such as JSch, but none of them have enough flexibility when it comes to file manipulation and transfer. Could anyone suggest an alternate program or approach to my problem? 回答1: On the contrary, JSch does support file transfer: