rlogin / ssh login with password

Hello,

I need to find a way to connect from server1 to 30 other servers using a single line command in order to run various command from the other 30 servers.
I am looking for a single line connection command in which i can provide the server name user name and password and connect to the requested server.

I cannot use .rhost file.
I cannot use expect

Please assist.

Hi,

You stipulate that expect and .rhosts are not acceptable, but your subject mentions ssh, so i would suggest public key authentication, as this is the best way to accomplish what you're after.

Of course, this would require manual intervention on each server to first run a ssh-keygen for the user you wish to access as, if you don't have this already setup.

HTH

I am sorry since i must have miss spoke.

The connection needs to be done from all 30 server to all other 30 servers.
so I cannot manualy enter each server and perform an initial setup for the other 30 servers.

I am looking for a way for a server to lunch a connection command to one of the other servers where the connection command has already embedded in it a server name, user name and a password.

Thanks.