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.
Asked
Active
Viewed 3,358 times
1
-
possible duplicate of [SSH library for Java](http://stackoverflow.com/questions/995944/ssh-library-for-java) – Pascal Thivent Jun 14 '10 at 21:01
3 Answers
3
I would use JSch (and do).
It's not too large to learn quickly. It's used in:
- Ant(1.6 or later).
- JSch has been used for Ant's sshexec and scp tasks.
- Eclipse(3.0).
- 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.
- NetBeans 5.0(and later)
- Jakarta Commons VFS
- Maven Wagon
- Rational Application Devloper for WebSphere Software
- HP Storage Essentials
- JIRA
and, it has X-forwarding and such to work with Linux.

Kevin Panko
- 8,356
- 19
- 50
- 61

jtzero
- 2,204
- 2
- 25
- 44
1
Since you also asked about Telnet Commons Net provides an implementation.

Mark
- 28,783
- 8
- 63
- 92
-
1not sure if you still need a solution but I made something [simple](http://stackoverflow.com/questions/5988029/java-telnet-library/14098926#14098926) (and EXTREMELY limited in scope) that might help – Boon Dec 31 '12 at 07:47
0
I can also recommend JTA, the Java Terminal Adapter. Very nice plugin architecture if you have to add value to it.

user207421
- 305,947
- 44
- 307
- 483