Comments on Mounting Remote Directories With SSHFS On Ubuntu 11.10

Mounting Remote Directories With SSHFS On Ubuntu 11.10 This tutorial explains how you can mount a directory from a remote server on the local server securely using SSHFS. SSHFS (Secure SHell FileSystem) is a filesystem that serves files/directories securely over SSH, and local users can use them just as if the were local files/directories. On the local computer, the remote share is mounted via FUSE (Filesystem in Userspace). I will use Ubuntu 11.10 for both the local and the remote server.

5 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

Nice article. I'd expect that the filesystem could be mounted at boot time with fstab using the _netdev option as an alternative to mounting with rc.local?

By: Hemo

Why not use

/etc/network/if-up.d/

and/or

 /etc/network/if-down.d/

 to store scripts to mount and unmount the share when the network goes up/down.

 I am using this method to attach to a remote system with sshfs whenever my vpn connection is active and it works great. 

By: Anonymous

I just tried this on ubuntu 12.04 precise and was not getting the password-less access until I generated a key on server2 and put it in the authorized_keys of server1.

 

By: Mondane

Here's an easier method for automounting sshfs:

 http://ubuntuforums.org/showthread.php?t=430312

By: Dennis

Best review of sshfs and also pubkey setup I have used.  I forget between time to time, and will keep this bookmarked!  thanks!