Sshfs Client

Introduction

In computing, SSHFS (SSH Filesystem) is a filesystem client to mount and interact with directories and files located on a remote server or workstation over a normal ssh connection. SSHFS installation for Windows 10 relies on 2 open-source software available in Github.com. This section guides you through with the installation. HEADS UP: Like any other open-source software, they get updated frequently. Hence, you will need to search for the latest version rather than follow the version numbers specified in this guide. Description SSHFS (Secure SHell FileSystem) is a file system for Linux (and other operating systems with a FUSE implementation, such as Mac OS X or FreeBSD) capable of operating on files on a remote computer using just a secure shell login on the remote computer.

This is my personal log of how to set up a server and a client machineto automount a remote directory using sshfs.

Sshfs Client

Server side

On a server machine called foobar

Code

Edit /etc/ssh/sshd_config and change the line from

At the end of /etc/ssh/sshd_config, adding the sshfs user toan existing AllowUsers config entry:

Restart sshd

Add to groups and create the sshfs user:

Prepare the directories and mount points. We'll use /x/vision for this example

Edit /etc/fstab and add:

Them mount it

Install sshfs client

The client side

You will need a kernel that supports automounting and has FUSE support.Look in the filesystems section.

As I run Gentoo Linux, the following installs the latest autofs

Edit /etc/autofs/auto.master and add something like (useappropriate uid and groupid):

Create /etc/autofs/auto.sshfs and add en entry pointing tothe server called foobar:

Create symlink to the directory:

Sshfs client managerSshfs

After sending root's public key to foobar and adding it to/home/sshfs/.ssh/authorized_keys, we bootstrap the ssh connection:

Win Sshfs

Add autofs to the rc start process and start it

A useful bash alias to have so that the automounted directories are transparentin your login session are

Congratulations. You now have sshfs working with autofs

Sshfs Client

Fudge
11 June 2014