Having trouble interacting with text based UI

32 views
Skip to first unread message

Robert Butera

unread,
Sep 14, 2016, 6:43:43 AM9/14/16
to sshj-users
Hi,

I am attempting to use sshj to automate a text based UI that is accessed via ssh.

Using sshj, I am successfully able to authenticate, navigate through a couple of menus, but when I hit a certain menu I am unable to get a response from the server no matter what I send.

This occurs when I use the SSJ rudimentary PTY console provided in the examples.  It also happens when I use ExpectIt (https://github.com/Alexey1Gavrilov/ExpectIt) with SSJ and it occurs when I use JSch.  So there is almost certainly something i'm doing wrong, I just don't know what it is.

If I use command line ssh I have no problems navigating past the menu.

I am looking for any guidance as to how I can diagnose the problem and move forward.  Any thanks would be greatly appreciated.

Rob

Jeroen van Erp

unread,
Sep 14, 2016, 6:59:02 AM9/14/16
to sshj-...@googlegroups.com
Hi Robert,

What are the (verbose) logs when using regular command line ssh? And what are the trace logs of using sshj?

Regards,
Jeroen

--
You received this message because you are subscribed to the Google Groups "sshj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sshj-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Butera

unread,
Sep 14, 2016, 6:03:47 PM9/14/16
to sshj-users
Hi Jeroen,

You can find both the sshj trace logs (using the rudimentary PTY example) and the verbose command line logs here:


In both cases I navigated to the menu in question.  With the command line I was able to get past it, with sshj I was not.

Regards
Rob
To unsubscribe from this group and stop receiving emails from it, send an email to sshj-users+...@googlegroups.com.

Robert Butera

unread,
Sep 14, 2016, 8:43:47 PM9/14/16
to sshj-users
Seem to have worked this out.

Using sshj with expectIt I was able to navigate past the menu.

The important thing was to send carriage return - line feed on each command.

Rob
Reply all
Reply to author
Forward
0 new messages