Which Java Telnet or openSSH library?

*爱你&永不变心* 提交于 2019-12-11 11:53:29

问题


I need to make a small test program in java which has to communicate with remote Windows server using telnet, or openSSH. Which library would you suggest to use? I'd like to use a well documented and stable library.


回答1:


I would use JSch (and do).
It's not too large to learn quickly. It's used in:

  1. Ant(1.6 or later).
  2. JSch has been used for Ant's sshexec and scp tasks.
  3. Eclipse(3.0).
  4. Our Eclipse-CVSSSH2 plug-in has been included in Eclipse SDK 3.0. This plug-in will allow you to get ssh2 accesses to remote CVS repository by JSch.
  5. NetBeans 5.0(and later)
  6. Jakarta Commons VFS
  7. Maven Wagon
  8. Rational Application Devloper for WebSphere Software
  9. HP Storage Essentials
  10. JIRA

and, it has X-forwarding and such to work with Linux.




回答2:


Since you also asked about Telnet Commons Net provides an implementation.




回答3:


I can also recommend JTA, the Java Terminal Adapter. Very nice plugin architecture if you have to add value to it.



来源:https://stackoverflow.com/questions/2715406/which-java-telnet-or-openssh-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!