For a number of downstream reasons, I’m trying to transfer a file I have on one subdomain, which is an SSH User, to another domain which is an SFTP User.
My hope is to eventually have this run repeatedly as a Cron job, but for now I’m just trying to get it working once.
I’ve tried rsync and scp in the terminal as such:
After establishing ssh connection to the server where the file is, I’ve tried:
rsync -vzru /home/userA/sub.domain.com/transfertest/ userB@domain.com:/home/userB/domain.com/transfertest/
scp /home/userA/sub.domain.com/transfertest/transfertest.csv userB@domain.com:/home/userB/domain.com/transfertest/
With both, I’m prompted to enter the password for userB. When I do this, the terminal hangs and nothing else happens.
Any advice is appreciated, thanks very much!