How to upload a local file to Ubuntu server?

scp [source file] [username]@[destination server]
  • Open your terminal on your local machine.

  • Use the following SCP command to upload a file:

scp /path/to/local/file username@your_server_ip:/path/to/remote/destination/

  • /path/to/local/file: The full path to the file on your local machine that you want to upload.

  • username: Your server’s username (usually root 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.

0 0 votes
Article Rating
Subscribe
Notify of
guest


0 Comments
Inline Feedbacks
View all comments