I'm attempting to use rsync on a new RHEL server to copy files/directory from a remote Ubuntu server. I used rsync -avx [email protected]:/var/www/ /var/www/html
I'm then prompted for the password for [email protected] and provide it. Unfortunately, I receive permission denied (publickey,password). Note that the username I'm using on the RHEL server is different from the username on the Ubuntu server.
How do I rectify this issue?
Thanks!!