Ray R-sync not working but Ray Attach works

Hello, I’m trying to rsync-up a file from my laptop to a remote cluster (Ray on EC2), but I get the following error:Error: SSH command failed. I am, however, able to ray attach and ssh into the cluster. Why is SSH working with ray attach but not with ray rsync-up ? Or is it some other issue?

Thanks,
Vedant