1829379 Members
6358 Online
109991 Solutions
New Discussion

Re: Remote Installer

 

Remote Installer

How do I run a remote command using ssh in a shell script ?
I tried to redirect the stdin from a file containing a password for the ssh command, but it didnt help.
Can a perl guru help ? Thanks !
1 REPLY 1
generic_1
Respected Contributor

Re: Remote Installer

You need to setup SSH keys on the servers your using with a null passphrase or you can install a scripting language called expect and call it to type in your passwords to the terminal. SSH keys will be the easiest. You will not be able to just redirect the password as input via normal shell scripts.

This link explains ssh keys.
http://www.bluegum.com/Software/ssh-auth.html