How to rsync files from remote to local server without prompting for password

Question: I am wondering if there is a way to rsync files files from remote server to the local server without a shell prompting you for password. Give the shell the password to use and never prompt you for one.

Login to See the Rest of the Answer

: If use rysnc with sshpass the shell does not prompt you for password. You need to understand the command how it would work. Follow the steps below:

1. First you need to provided the remote password that the remote computer might prompt when moving the files
2. Then you need to provide the User Name for the Remote Computer to ssh in, see the full command below:

sudo sshpass -p 'YourPasswordComesInHere' rsync -av -r -e ssh --update MyUserName@RemoteIPAddress:/media/folder/ /LocalComputerFolder/SubFolder

© 2023 - ErnesTech - Privacy