I'm attempting to use rsync on a new RHEL server to copy files/directory from a remote Ubuntu server. I used rsync -avx firstname.lastname@example.org:/var/www/ /var/www/html
I'm then prompted for the password for email@example.com 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?