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 firstname.lastname@example.org:file-under-user-home-dir.txt copied-file.txt scp email@example.com:dir-under-user-home-dir/some/file.txt /full/path/to/destination/file.txt scp firstname.lastname@example.org:/var/www/vhosts/somesite.com/backup.tar.gz . scp -r email@example.com:/var/www/vhosts/somesite.com/images . scp -r firstname.lastname@example.org:/var/www/vhosts/somesite.com/images /home/user/backup/sometime.com/images
In all these operations, the user is prompted to enter the password.