Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Transfer files via SCP (secure copy command)
This guide explains how to securely transfer files between your machine and the server of the Web hosting using the SCP
protocol (secure copy command).
Preamble
- To function, the
SCP
command requires:- a source: a file/folder to transfer
- a destination: FTP server address for the transfer
- The data is automatically encrypted by
SCP
during the transfer.
Copy a local file to the server
Prerequisites
- To get the FTP server address:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on FTP / SSH in the left sidebar.
- The host server address is displayed at the top left:
- To get the destination folder path:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on More information (in the Information section):
- Copy the absolute path.
- Complete the absolute path with the desired destination folder.
Next, to copy a file from your machine, the command is as follows:
scp localmachine/path_to_the_file username@ftp_server_adress:/path_to_remote_directory
To copy an entire directory from your machine, you need to adjust the command as follows:
scp -r localmachine/path_to_the_file username@ftp_server_adress:/path_to_remote_directory
The entire folder will be transferred to your server.
To copy the contents of an entire directory from your machine, you need to adjust the command as follows:
scp -r localmachine/path_to_the_file/* username@ftp_server_adress:/path_to_remote_directory
⚠️ For additional help contact a partner or launch a free tender — also discover the role of the host.
Link to this FAQ: