How to transfer files between Ubuntu machines? [duplicate]

I understand that this is a totally novice question but...

What is the best way for me to transfer files between two PC's? I have a laptop with Ubuntu Desktop (12.04) and a local server I'm setting up using Ubuntu Server. I'm used to windows environment where I might typically browse the network via Windows explorer and move files around. This might work for Ubuntu desktop, but what's the best way for Ubuntu server?

Do I need to create a user on the server, then SSH into the server from the laptop? Can I then use a move command to move my files back and forth? What do I need to look into?

Thanks.


Solution 1:

The easiest way is to use scp command :

As you use cp command `cp ~/file/ /mnt/file1

You can use scp : scp ~/file/ user@host:~/file1

Then it will prompt for credentials .

Solution 2:

Video explanation

It's very simple in Ubuntu 16.04. You can just use the "connect to server" button in files (nautilus). In the popup window you need to type an sftp string like this:

sftp://[email protected]/

where username is the username of the other machine, and hostname is the hostname of the other machine. Then you'll be prompted for a password and you're good to go.

Note that you have to sudo apt install openssh-server on the remote machine.

Solution 3:

Rsync is probably your best bet. It is an incremental file transmission protocol that allows you to keep folders in sync between machines, so it would be especially good for things like media.