When setting up an ubuntu local network share, you can use SSH or Samba to access files between machines. This guide covers both methods.

SSH

Destination machine

Destination host has to have SSH package installed, in order to accept SSH connections:

sudo apt update 
sudo apt install openssh-server

Local machine

Authenticate to destination machine and access destination files:

ssh destination_user@destination_ip_address

Enter destination_pass when prompted.

Samba

Destination machine

On destination machine install necessary packages:

sudo apt-get install -y samba samba-common python-glade2 system-config-samba

Open nautilus, right-click on the folder you want to share and choose the Local Network Share option. When the File Sharing dialog opens, select Share this folder.

Setup samba password:

smbpasswd -a username

Local machine

  • Open nautilus -> Other locations -> click on remote machine -> authenticate with user and smbpasswd.
  • Access shared folder via terminal cd /run/user/gvfs