I have done copying files and even directories from remote servers before. However, this time it is more secure and password is not visible on the command line. Moreover, the file transfer goes through secure medium SSH.
Nothing fancy, this is how we do it.
scp email@example.com:file-under-user-home-dir.txt copied-file.txt scp firstname.lastname@example.org:dir-under-user-home-dir/some/file.txt /full/path/to/destination/file.txt scp email@example.com:/var/www/vhosts/somesite.com/backup.tar.gz . scp -r firstname.lastname@example.org:/var/www/vhosts/somesite.com/images . scp -r email@example.com:/var/www/vhosts/somesite.com/images /home/user/backup/sometime.com/images
In all these operations, the user is prompted to enter the password.