Sshfs

From Andreida

mount as user with sshfs

In many cases you will want to mount as user, not as root. Everything with "my" in the beginning has to be changed by you. The uid and gid are normally 1000, but perhaps you'll have to change them too. Just call "id" on the computer from which you want to call the script. If you don't use the uid/gid/idmap/workaround parameters you will have bad rights for some files.

#!/bin/bash
sshfs myserver:mydirectory /home/myuser/mnt/myserver -o uid=1000 -o gid=1000 -o idmap=user -o workaround=rename

Unmount:

fusermount -u /home/myuser/myserver

mount as root via /etc/fstab

sshfs in /etc/fstab

 sshfs#<user>@<server>:/home/<remote-path> /home/<local-path>  fuse uid=1000,gid=1000,umask=022,allow_other 0 0

To check the connection, call as root

 mount -a