View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > 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.

Contents

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

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

nmap 192.168.0.1 -p 22

2. Load kernel drivers for sshfs

modprobe fuse

3. For permanent use add 'fuse' at the end of /etc/modules

cat >>/etc/modules<<EOF
fuse
EOF

4. Add your user to the fuse user group:

adduser root fuse

Now you logout and login into the machine
5. Create local mountpoint in your home directory

mkdir /mnt/sshfs

6. 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


Share

Personal tools