Need an Ubuntu network share so you can share files on your local network? This guide shows both sides:

  • how to share a folder from Ubuntu using Samba (SMB)
  • how to access a local network share from Ubuntu using the GUI or terminal.

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 destinations_user@destination_ip_address

Enter destination_pass when prompted. If you'll be using SSH often, it's worth setting up key-based auth so you're not typing a password every time.
Here’s my walkthrough on configuring passwordless SSH access on Linux.

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