User Tools

Site Tools

This wiki is read only and for archival purposes only. >>>>>>>>>> Please use the new OpenWrt wiki at <<<<<<<<<<

Table of Contents

SSH FileSystem

Both solutions samba and nfs.server do not offer security though encryption and are thus only suited for use in a closed intranet. If you need to remotely access files over the internet, it is better to use an encrypted solution. Whilst not offering as strong an encryption as a VPN, it is quite easy to set up. In this recipe you will be shown how to set up and configure a sshfs instead of using OpenVPN or setting up a encrypted tunnel with network. sshfs is based on SFTP so you need to install sftp support on the server.

Needed Packages

  • openssh-sftp-server


There is nothing more to be done on the server. Now you can mount your sshfs by executing:

sshfs [user@]host:[dir] mountpoint

If you did not install the package to the standard destination (e.g. using opkg -d ram), you need to specify the sftp executable in your sshfs command:

sshfs [user@]host:[dir] mountpoint -o sftp_server=/tmp/usr/libexec/sftp-server

The more convenient way would be to link the binary to the default destination, so execute on your OpenWrt:

mkdir -p /usr/libexec
ln -s /tmp/usr/libexec/sftp-server /usr/libexec/sftp-server
doc/howto/sshfs.server.txt · Last modified: 2012/09/19 14:11 by roemer2201