scp [source file] [username]@[destination server]
-
Open your terminal on your local machine.
-
Use the following SCP command to upload a file:
-
/path/to/local/file
: The full path to the file on your local machine that you want to upload. -
username
: Your server’s username (usuallyroot
or a specific user you created). -
your_server_ip
: The IP address of your Ubuntu server. -
/path/to/remote/destination/
: The location on the server where you want to upload the file.