"Great. However, I didn't' want to connect to a host
with one openSSH service. I had to connect to a router (a HW
router, so to speak) that, whenever I sent it more than one
command, would break my connection.
"After several tries and experiments, I thought about creating
one application that would use the ssh client to send commands to
the router and get the output of the ssh client. It would wait for
the router's prompt to show up before sending another command. Now,
that would require not only getting the output of the ssh client,
as that is a piece of cake: