The article Work locally on a remote project with any editor in combination with SSHFS explains how to use SSHFS to mount a remote file system on your local system.
Unfortunately in some cases users experience the following error message.
fuse: bad mount point `/mnt': Transport endpoint is not connected
In this case the file permissions as well as the owner and group of your mount point look like
d????????? ? ? ? ? ? mnt
then just kill all sshfs processes and unmount your mount point
sudo umount -l /mnt
In this case you want to use additional sshfs options:
sudo sshfs -d -o allow_other -o reconnect -o ServerAliveInterval=15 email@example.com:/var/lib/redmine/plugins /mnt -p 12345 -C
In order to use
allow_other you need to uncomment the last line in
# Set the maximum number of FUSE mounts allowed to non-root users. # The default is 1000. # #mount_max = 1000 # Allow non-root users to specify the 'allow_other' or 'allow_root' # mount options. # user_allow_other