sshfs makes it convenient to mount a directory from a remote Linux computer on a local Linux computer. SSHFS-Win makes it easy to mount a directory from a remote Linux computer on your local Windows computer.
- Install the latest stable installer of WinFSP from here.
Install the latest stable installer of SSHFS-Win from here.
Open File Explorer, right-click on This PC and choose Map network drive. Choose a drive to mount at and in the Folder field enter:
By default, Windows will use your Windows password or credentials for the remote computer. If the password or credentials are different on the remote computer then choose the Connect using different credentials option.
Windows will ask for your password at the remote computer. After that the home directory from your remote computer will be mounted at the Windows drive you chose. I found that I had full read-write access to the files mounted from remote.
Tried with: SSHFS-Win 2.7.17334 and WinFSP 1.2.17346
SSHFS can be used to mount a directory of one computer on another computer. Trying that gave me this error message:
Connection reset by peer
I was using the hostname of the remote computer. As explained here, this can sometimes give this error. The error went away when I used the IP address of the remote computer instead.
Tried with: Ubuntu 14.04
Samba (SMB) and NFS can be too complicated to mount directories between computers on a home network. If both the remote and local computers are running Linux then an easier method is to use SSHFS.
- Installing SSHFS is easy:
$ sudo apt install sshfs
- Create a local directory where you want to mount the remote directory:
$ mkdir my_remote_contents
- Make sure you can already SSH to your remote computer:
$ ssh my_remote_login@my_remote_computer
- To mount your remote directory using SSHFS to the local directory you created earlier:
$ sshfs my_remote_login@my_remote_computer:/some/remote/path my_remote_contents
Now you can browse the directory both from shell or any GUI file explorer. All normal file operations works seamlessly, including deletion.
- To unmount the remote directory:
$ fusermount -u my_remote_contents
Note that your user needs to have sudo permissions to be able to unmount the directory.
Tried with: SSHFS 2.5 and Ubuntu 14.04