Back to the List

​How do I upload files to a Linux Server from a local Linux Computer?

How do I upload files to a Linux Server from a local Linux Computer?

To grant you all the necessary admin rights, always enter the command sudo -i at the beginning of each session:

sudo -i

This command will grant you the rights of a power user, so you don’t have to write the command sudo at the beginning of every command line. If you’re an experienced Linux user, you may transfer your files without using any graphical interface.

The easiest way is to use the command SFTP, for instance:

sftp @

If you change your port don’t forget to use your new port number:

sftp -P@

Alternatively, you can use a file manager. In case you’re already using an GUI equipped with file manager (GNOME Nautilus on Ubuntu for instance), you do not need to install a separate client. Otherwise, use any FTP client that can handle SFTP connections, for instance FileZilla Client.

You can now proceed with uploading your first files to the server. Don’t forget to backup your data regularly, as there are not automatic backups set on your server by default.