Accessing Local Fileserver in Ubuntu
Backup, Linux, Sysadmin
A headless always-on server can be a good way of managing office backups and shared directories.
These instructions assume that:
- A linux server has been set up on the network and is accessible via SSH from the client machine (we use a raspberry pi with attached external storage)
- The machines accessing the server’s filesystem are running Ubuntu desktop (14.04 in this case)
- The remote filesystem (in this case, the external drive attached to the Pi) is mounted on
/mnt
- this is the directory that will be accessible by the client
Install sshfs on the Client Ubuntu Machine
SSHFS stands for SSH File System. It is a filesystem client that allows you to interact with files on a remote server or workstation by means of an SSH connection.
Install SSHFS:
Add your non-sudo user to the fuse
group:
Activate group membership change:
Make and Mount the Directory
You’ll need to enter password for the remote host.
You could also set up passwordless ssh login to simplify this process.
Unmounting the Filesystem
To unmount a ssh-mounted directory:
Auto Mount
To automatically mount over ssh on boot:
- Set up passwordless ssh login
- Append the following in
/etc/fstab
:
Connect Via Nautilus
In Nautilus, open ‘File’ > ‘Connect to Server’ in ‘Server Address’ bar, add sftp://pi@192.168.1.XXX:/mnt
.
Resources
- Mount Remote Directory Over SSH on Linux - nice article, but the Nautilus information is superceded by the info contained in the link below
- Connect via Nautilus
comments powered by Disqus