How to mount a remote filesystem with SSHFS

We can mount a remote filesystem (username@servername:/remotefilesystem) in a local mountpoint (/local_mountpoint) with SSHFS:

sshfs -C -o idmap=user username@servername:/remotefilesystem /local_mountpoint

extra options:
-C use compression
-o idmap=user translate user ID of connecting user to allow local editing/saving of remote files.

To unmount use:

fusermount -u /local_mountpoint


umount /local_mountpoint

you may have to use administrative privileges.

For details consult:

the sshfs man page

SSH Filesystem oficial webpage

wikipedia entry


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s