Sshfs

From LQWiki
Jump to: navigation, search

sshfs is a kernel module that allows a remote file system to be mounted locally, with all transport encrypted through ssh.

Installation

See install sshfs.

Mounting & Unmounting

In this tutorial we assume you want to mount a folder from a computer with the IP 192.168.0.1. The mountpoint will be /mnt/sshfs. You are doing these steps as root user. You have the sshfs software installed.

Ubuntu

This has been tested with Ubuntu 9.04. 1. check whether the ssh port is open on the remote machine:

nmap 192.168.0.1 -p 22

2. Create local mountpoint

mkdir /mnt/sshfs

3. Mount the remote temp folder (as an example) to our mountpoint:

sshfs 192.168.0.1:/tmp /mnt/sshfs

SUSE

1. check whether the ssh port is open on the remote machine:

nmap 192.168.0.1 -p 22

2. Create local mountpoint in your home directory

mkdir /mnt/sshfs

3. Mount the remote temp folder (as an example) to our mountpoint:

sshfs 192.168.0.1:/tmp /mnt/sshfs

See also