views:

950

answers:

2

I'm trying to create an app for Android that simply sends a command to an SSH server. No response needed, I just need to be able to send a command. I was wondering if there's any java library out there that I could use?

No advanced stuff needed, just a pure connection to send the command.

+1  A: 

You could see what ConnectBot is using.

CommonsWare
Very easy made answer :|
tuergeist
+2  A: 

You are searching for JSch.

Other libs are Paramiko or Trilead SSH lib. A place where you can browse the source for trilead is the connectbot project. Please notice that connectbot also uses this unmaintained lib.

It also exists a commercial SSH Java lib: J2SSH Maverick

Note: Answer refactored due to comment.

tuergeist
JSch is used builtin in Eclipse, so I guess this is a good, maintained library to use.
abyx