Table of Contents

How to upload files to your server

Locate the files

Start by going to the folder containing the files to upload.

Supposing the file is in the “pages” sub-folder of the “website” folder:

cd /website/pages

SFTP

You need to connect to your server using SFTP to upload your files:

sftp root@(your server IP)

Enter your password to open a connection to your server.

The "put" command

Use the “put” command to load files to your server, specifying the directory in which the files must go:

put example.html /var/www

The file called “example.html” will have been loaded to the /var/www directory on your server.

You cannot upload a folder directly, but you can upload all of its content: while inside the folder containing the files to be uploaded, log on to your server using SFTP and use the following command to load all files to the folder:

put *.* /var/www