Transfer files from a VPS to a FTP web hosting server

Posted on November 10, 2018 at 6:43 pm

How to transfer files from a VPS to a FTP web hosting server?

First login via SSH to your VPS.

With “scp” you can transfer files from your VPS to the FTP server.

Open the directory you want to copy to the other server, i.e:

cd /home/user/www

This command will copy files and folders (recursively, -r) to the remote server:

scp -r * username@hostname:~/

Obviously substitute “username” and “hostname” with the FTP credentials.

To upload the files in the /www/ directory in the remote FTP server:

scp -r * username@hostname:~/www/

Receive updates via email

Other Posts

Updated Posts