Advanced Setup Guides
File Transfer Methods for Linu...
SCP Linux <> Linux
9min
SCP (Secure Copy Protocol) is a simple and secure way to transfer files between your Linux machine and a Linux server. This article explains how to use the scp command in the Linux terminal to copy files to and from a Linux server.
Make sure the SSH service is installed and running on your Linux server. Use the following command:
To upload a file from your local machine to the Linux server:
- Replace /path/to/local/file with the full path to the file on your local machine.
- Replace username with your Linux server username.
- Replace hostname_or_ip with your server’s IP address or domain name.
- Replace /path/to/remote/directory with the target directory on the server.
To download a file from the Linux server to your local machine:
- Replace /path/to/remote/file with the file’s path on the server.
- Replace /path/to/local/directory with the target directory on your local machine.
Updated 11 Dec 2024
Did this page help you?