Jsch或SSHJ或Ganymed SSH-2? [英] Jsch or SSHJ or Ganymed SSH-2?
问题描述
-
我需要连接到服务器(用户名,密码,主机) - 轻松
I need to connect to server(username,pasw,host)-- easy
输入3- 10个命令 - command =dir; date; cd; dir是否有更简单的方法?,不写20行:while(smtng){很多东西+神秘的打印到scr:D}
enter 3-10 commands -- command="dir;date;cd;dir" is there an easier way ?, without writing 20 lines: while(smtng) { a lot of stuff+ mysterious print to scr:D }
下载文件 - 轻松
将另一个下载的文件写入同一文件(不添加owerride) - 任何想法如何?
write another downloaded file to the same file (add not owerride) -- any ideas how?
所以要执行这些可增加的简单任务,如果你敢于使用Jsch,这似乎是不可能的( awsome文档),Jsch,sshj,Ganymed之间有选择任何建议?
So to perform these increadible easy tasks, which might seem impossible if you dare to use Jsch(awsome documentation), there is a choise between Jsch,sshj,Ganymed any suggestions?
神秘:
2 )多个命令进入
4)在现有的txt文件中添加更多txt:D(可能还有内置命令)?
4) adding to the existing txt file more txt :D (probably there is a build in command) or not?
/* just for download/owerride : sftpChannel.get("downloadfile.txt", "savefile.txt");*/
推荐答案
我不能除了其他人之外,Ganymed确实很有效。
I can't comment on the others but Ganymed works very well indeed.
这篇关于Jsch或SSHJ或Ganymed SSH-2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!