LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to bypass SCP password authentication (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-bypass-scp-password-authentication-4175427312/)

ISStaras 09-14-2012 04:42 PM

How to bypass SCP password authentication
 
I am trying to create a script in which part of it requires me to SCP a couple files over.. my problem is that I get thrown out of the script as soon as the authentication part comes (when it asks for the password)..

Is there anyway I can insert my password into the script so it will read and insert it on its own without me having to manually type it in? In other words, to pass the password over as a paramter?

I've been trying to work with the -o SCP parameter, ssh_option "PasswordAuthentication", but can't seem to figure it out..

Need help, Please & Thank You!

acid_kewpie 09-14-2012 04:47 PM

you really want to look at preshared key authentication. That's the "proper" way to not need a password.


All times are GMT -5. The time now is 06:43 AM.