linux hop-by-hop auomated SSH login

From: Andras Szekely (andras.szekely@nospam.ericsson.se)
Date: 01/22/03


From: "Andras Szekely" <andras.szekely@nospam.ericsson.se>
Date: Wed, 22 Jan 2003 11:37:48 +0100

Hi,

dunno if it's a question here every week, but could someone help if I need
to login to a system that is a couple of unix boxes away?
This should be done in an automated way, from a linux box.

Of course I could just type
SSH host A
id, pw
SSH hostB
id, pw
.
.
SSH host E
id,pw.

Also I can create login scripts under windows in the "secure CRT" client.
There I have to list what prompt to expect, and what to submit, then again
what to expect, what to submit. Using that client, I can start a script,
wait, and I find myself on Host E, being 5 hops away, without typing
anything.

Can this be done with any SSH client / special shell / whatsoever under
linux? I guess the expect shell is not able to do this, if it is, I'd need
the kick-off how to start a script.

thanks in advance
Andras



Relevant Pages