Originally Posted by spaceuser
I have used the scp command before a few times, but never using the password within the command line if it's even possible, I don't know for sure. Would appreciate if anyone could give me a hint or two on this.
Rather than trying to use a password, you probably want to use public key authentication. This is explained in the ssh man page
under the section AUTHENTICATION. There are also numerous articles on the Internet explaining it. Since this will be run automatically, you will need create your private key without a passphrase
. Understand that this carries some security risk since anybody acquiring that key will be able to log onto your Debian server with it.
If you create the key pair from your Debian system, be sure the OpenSSH package is up-to-date
since an out of date package might contain a horrible
security hole that was discovered a few months back.