MOUNT_POINT=/mount/point HOST=host MOUNT_PATH=/path/on/host if [ ! -d $MOUNT_POINT ]; then echo "mount point $MOUNT_POINT missing"; exit 1 fi if mount | grep $MOUNT_POINT; then echo "umounting..." fusermount -u $MOUNT_POINT else echo "mounting..." sshfs -C -o transform_symlinks -o Cipher="blowfish" $HOST:$MOUNT_PATH $MOUNT_POINT fi