Java ssh 访问windows/Linux 工作中遇到的问题: Java code运行在一台机器上,需要远程到linux的机器同时执行多种命令.原来采用的方法是直接调用ssh命令或者调用plink的命令. google下java的其他ssh方法,发现有个包. 具体介绍如下: Ganymed SSH2 for Java is a library which implements the SSH-2 protocol in pure Java.It allows one to connect…