Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing SCP password in a script

CharanAug 20 2011 — edited Sep 30 2011
Dear all,

I am passing a file from one server to another using scp. It asks for password to do with the command
scp -r /file_path/filename 10.10.80.80:/target_path, I want to schedule it in a script, how can I pass the password to scp in a script, or is there a way ro pass the password for as scp as argument in its command.

Regards,
Charan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2011
Added on Aug 20 2011
5 comments
2,222 views