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