I have a bash script that executes rsync transfers to a remote location, and every time I execute the script I get asked for a password.
Is there a way to avoid this?
This is the command I use: rsync -av /source usr@ip:/destination
rsync -av /source usr@ip:/destination
Use rsync over SSH and use an SSH key without a passphrase.
-e, --rsh=COMMAND specify the remote shell to use
rsync -e ssh ...
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
6 months ago