SSH and Telnet library for java

2019-08-09 09:00发布

问题:

I'm building a Java application who connects to hosts using telnet or ssh, execute a command and then return the output.

I've been using org.apache.commons.net.telnet.TelnetClient and written my own parsers so far. But I want to work less and do more.

Can someone recommend any SSH or telnet libraries that is easy to configure and use? It would be great if have some sort of expect functionality.

回答1:

Try JSch it is good for telnet and ssh related stuff.



回答2:

JTelnet



标签: java ssh telnet