Multiple rsync commands with one password prompt -




in order sync 2 source directories (e.g. ~/src1 , ~/src2) 2 separate destinations (e.g. /tgt , /tgt/sub_tgt) in remote system using single rsync command, doing:

rsync ~/src1 uid@host:/tgt; rsync ~/src2 uid@host:/tgt/sub_tgt 

for security reasons, password prompt necessary (do not want copy public key remote host) want avoid second password prompt. possible?

if not willing go keyset, stuck situation. each call require authentication.

i think work though, initiate ssh connection , execute commands after: https://unix.stackexchange.com/questions/50508/reusing-ssh-session-for-repeated-rsync-commands





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -