SSH Java-library for Android? [closed]

2019-01-21 09:49发布

问题:

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:

You are searching for JSch.

Other libs are jaramiko, paramiko, trilead-ssh2 . 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.