-
3rd February 2008, 02:28 AM
#1
scp and passing passwords
OK, I have done some searching and could not come up with an answer for this.
First off, I am trying to make a script that will scp a file to a remote server every day. I need to pass my password off to the scp command but cant get it to work.
BTW, I do not have access to make auth keys on the server so that is not an option.
I have tried
echo 'password' | scp file2 user@host.com:file2
it doesnt work
I have also tried using the sleep command in my script, dont work... Any help would be appreciated.
Thanks
Similar Threads
-
By Doward in forum Servers & Networking
Replies: 4
Last Post: 18th May 2009, 12:18 AM
-
Replies: 12
Last Post: 19th March 2009, 12:54 PM
-
By savorxit in forum Programming & Packaging
Replies: 2
Last Post: 18th June 2008, 06:36 PM
-
By ColonelPenguin in forum Programming & Packaging
Replies: 2
Last Post: 13th February 2007, 04:17 AM
-
By Bone in forum Programming & Packaging
Replies: 4
Last Post: 5th May 2006, 05:20 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
[[template footer(Guest)]]