I need to copy a directory to a server with a script .sh
running on another server. I read about the scp
command and I saw some usage examples, but I did not figure out how I put the password of the server I'm accessing to copy right into my script , here is an example of the scp
command %:
scp /path/to/file username@a:/path/to/destination
It does not have to be just one line, it may be more ...