Mounting a SSH folder locally with sshfs

ssh.png

In this tutorial I’ll show you how to use a remote (over the internet) based computer’s file system like a local one.
You will be able to use it exactly like you use a normal folder cutting, copying, pasting and creating documents etc.
1. Install ssh on remote server

2. Install sshfs on your computer
sshfs: sshfs is a file system client based on the SSH File Transfer Protocol. Since most SSH servers already support this protocol it is very easy to set up: i.e. on the server side there’s nothing to do. On the client side mounting the file system is as easy as logging into the server with ssh.

  • On Ubuntu and Debian: sudo apt-get install sshfs
  • On Suse (as root) : zypper in sshfs
  • On Fedora (as root): yum install sshfs

3. Add your normal (unprivileged) user to the fuse group

You will have

sudo adduser localuser fuse

4. Create the folder you want to mount into
mkdir /home/localuser/Desktop/sshfs

5. Mount the remote directory with the syntax below
sshfs youruser@yourcomputer.yourdomain.org: /home/localuser/Desktop/sshfs

6. Use the folder like a normal directory!

7. When your finished unmount it
fusermount -u /home/localuser/Desktop/sshfs

More info:

http://fuse.sourceforge.net/sshfs.html

Related Posts

Comments are closed.