When everything else fails try:

 

#!/usr/bin/expect
set timeout 19900
spawn /bin/bash
expect -re "]# "
send "rsync -av --delete user@host:someremotefolder/ somelocalfolder\r"
expect -re "password:"
sleep 2
send "userpassword\r"
expect -re "total size is"
expect -re "]# "
send "exit\r"

Just replace userpassword with your password. Also replace with your rsync command, obviously.

If you don’t have expect install it:

Centos

yum install expect