OK, Thanks.
Yes this is on Android.
And yet, I can manually ssh to the tablet from my laptop using putty, then from there, I can ssh from the tablet to a linux PC.

I will try the "Poor Man's Expect" from the Tcl wiki for now.

Jorge