Enter password only once for ssh
Posted
by
usertest
on Server Fault
See other posts from Server Fault
or by usertest
Published on 2010-12-21T17:18:01Z
Indexed on
2010/12/21
17:55 UTC
Read the original article
Hit count: 241
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/
© Server Fault or respective owner