LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Pass password with ssh command (https://www.linuxquestions.org/questions/linux-newbie-8/pass-password-with-ssh-command-180645/)

BruceC 05-12-2004 08:28 AM

Pass password with ssh command
 
Hey Y'all,

I'm trying to put together a script to remotely connect to clients via ssh and execute a script, such as mount then rpm -U. My first obstacle is how to pass a password with the username in the ssh command. I have not seen this in the documentation and am doubtful that this is even possible.
Anyone had any luck with this type of thing?

thanks in advance.

Demonbane 05-12-2004 08:50 AM

read "man ssh" carefully
entering a password is not the only way for authentication

phatboyz 05-12-2004 08:55 AM

This is what you are looking for. I am using this to connect via cron and us rsync to remotely back up files. If you need help I can help you.

http://www.linuxquestions.org/questi...ticle&artid=79


All times are GMT -5. The time now is 06:04 PM.