You can accomplish this using password-less ssh keys.

Have a look at the man page for ssh-keygen

I recommend restricting the commands that each key is allowed to perform to enhance security
of this automated service. You should also of course protect the keys since they are a passwordless
means of executing remote commands on a machine that has the authorized key installed.

Regards,

Matthew Galgoci


David Simmons wrote:
We are trying to automate the update of files on a couple of different
linux servers. We are behind a firewall we don't maintain and are only
allowed to use SSH. We can copy the files using SCP, but we want to
automate the process. Is there anyway anyone knows of to feed SCP the
password in a shell script? Or is there any other way we can do this
copy without being asked for a password?
Thanks,
Dave Simmons


--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to