I use the following commands to sync folders. Each command requires me to type in the password. How can I group these commands to only enter the password once? Thanks.
rsync -ave ssh /opt/lampp/htdocs/new/folder1/
[email protected]:/home/folder1/
rsync -ave ssh /opt/lampp/htdocs/new/folder2/
[email protected]:/home/folder2/
rsync -ave ssh /opt/lampp/htdocs/new/folder3/
[email protected]:/home/folder3/