User Tools

Site Tools

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


This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
doc:howto:sshfs.server [2011/07/26 19:10]
doc:howto:sshfs.server [2012/09/19 14:11] (current)
roemer2201 sftp configuration on not standard installation destination
Line 1: Line 1:
 +====== SSH FileSystem ======
 +Both solutions [[doc:​uci:​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 [[doc:​uci:​network]]. sshfs is based on SFTP so you need to install sftp support on the server.
 +===== Needed Packages =====
 +  * openssh-sftp-server
 +===== Configuration =====
 +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
 +===== Links =====
 +  * [[http://​​wiki/​Secure_Shell_Filesystem]]
 +  * [[http://​​sshfs.html]]
doc/howto/sshfs.server.txt · Last modified: 2012/09/19 14:11 by roemer2201