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.