Questions tagged [sshfs]

sshfs is a FUSE filesystem for Linux which allows directories on remote machines accessible via SSH to be mounted locally.

Filter by
Sorted by
Tagged with
1 vote
0 answers
101 views

What is a robust alternative to sshfs (which has been recently orphaned)?

According to https://github.com/libfuse/sshfs, sshfs is now an orphaned project, with no active maintainers. Is there a good, safe, robust alternative, one can use to mount remote filesystems?
  • 293
0 votes
0 answers
55 views

Combining security key based login with sshfs mount on PXE booted live system

TL;DR: What is the best way to mount user homes via SSHFS (or any other encrypted protocol) at login while enforcing the use of security keys like Yubikeys and Nitrokeys? The long version: I need to ...
0 votes
0 answers
375 views

Filesystem mounted with sshfs throws error inside of docker when creating a symlink

What actual is I have a server(EX42) and a storage box (BX21) both hosted at Hetzner. On the server runs a peertube instance and I want to save the data on the storage box. I installed sshfs on my ...
  • 101
0 votes
0 answers
100 views

ssh and sshfs connection through nginx reverse proxy problems

I have a small annoying problem with ssh and sshfs connection to a server that is behind an nginx reverse proxy. I use sshfs remotely to mount some folders from the server and ssh to connect to it and ...
  • 131
0 votes
1 answer
350 views

Restrict user's access to only one directory

ServerA needs to have a directory of ServerB mounted in a location, with write permissions. I've been using SSHFS for this. I find SSHFS being very stable (100% reliable), while NFS was not so stable, ...
  • 501
0 votes
1 answer
459 views

SSHFS mount that freezes system on network disconnect

i am using SSHFS to mount a volume. But whenever anything causes a network disconnect or interruption my whole system will freeze up. Apps will be slow and unresponsive, and it is impossible for me to ...
  • 343
0 votes
0 answers
77 views

Remote access to `/dev/input` fails with permission error

I need to open a USB game controller device (joystick) remotely. This device is physically connected to server and is available for local user with permissions: crw-rw-r--+ 1 root input 13, 0 ** /dev/...
  • 1
2 votes
0 answers
774 views

Docker: 'failed to open /dev/fuse: Permission denied' as non root user

What I want to achieve is to prepare Docker image in which every non-root user can make SSHF mount. MWE below: Dockerfile: FROM rocker/rstudio:4.0.3 USER root RUN apt-get update && apt-get ...
  • 121
1 vote
0 answers
404 views

autofs is not mounting sshfs point while sshfs and mount -t fuse does

folks. Recently I came over autofs and now trying to make my everyday life easier. I have a remote server that I use as I file share with a help of sshfs for years. So, I found some tutorials how to ...
1 vote
0 answers
154 views

Enforce SFTP Blind file upload with a proxy

How to enforce SFTP blind upload with a proxy? Scenario: I have the following nodes: a server, a proxy and multiple clients. The clients can initiate connection to the sever through the proxy node, ...
  • 111
0 votes
1 answer
430 views

SSHFS mount from fstab fails to authenticate

I created SSH key and transferred it to my target device using ssh-copy-id and now I can ssh targetUsername@targetHost -p 8798 without providing RSA key nor password for targetUsername@targetHost ...
  • 15
0 votes
1 answer
89 views

sshfs - howto view load and find bottlenecks

I got 2 dirs mounted by sshfs from remove server. And suspect those make my app so slowly (app generate many i/o operations in this). I can use fdisk/iostat/iotop for diagnostic HDDs bottlenecks, but ...
1 vote
0 answers
276 views

git clone does not work in (sshfs) mapped drive in windows

We have mounted Z: drive using sshfs in Windows 10. We are able to clone our repo in C: drive but not on the mapped network drive Z: Error: $ git clone https://<repo>.git Cloning into ... ...
0 votes
1 answer
793 views

How to remount a lost sshfs in a docker container

I have a mounted volume in my docker container filesystem which is itself a mounted sshfs on my host. The thing is when (for a reason or another), my sshfs mount is lost, I also loose my volume in ...
  • 3
0 votes
2 answers
455 views

Read only filesystem populated on demand

Basically I have a file system that is accessible both by NFS and ssh. I need a copy of this on my local. But I want to pull only those files that I need (basically cache them on demand). Since I'll ...
1 vote
1 answer
1k views

How to prevent sshfs from freezing everything?

How do I prevent SSHFS from freezing everything that attempts to access it when the server doesn't answer? My fstab looks like this: user@domain.com:/home /mnt/data-remote fuse.sshfs ...
3 votes
0 answers
2k views

SSHFS: Transport endpoint not connected

There are a number of posts across the Stack Exchange sites relating to the issue in the title, but none seem to offer that great a solution. This post I guess is a shameless attempt to bump the issue ...
  • 269
1 vote
1 answer
212 views

Trying to use sshfs to mount directory from a puppet exec

Ununtu 16.04 and 18.04 (same problem on both) I am trying to use sshfs to mount a directory on another system, it works fine from the command line but when I execute the same command from a puppet "...
0 votes
0 answers
618 views

How to make sshfs (from windows) use chmod 644 instead of 700 as default?

I'm using sshfs-win to connect windows explorer to linux box over ssh. All good but new files are 700 instead of default 644. rwx------ < bad rw-r--r-- < default sending a file over psftp ...
  • 335
0 votes
1 answer
1k views

How can I limit the bandwidth over an SSHFS mount?

I am transfering large media files to my local machine over an SSHFS mount. I am not too concerned about speed and want to provide a better QOS to other network services and so want to limit the ...
  • 233
2 votes
0 answers
182 views

Quota on filesystem mounted via SSHFS

On client C, a directory from server S is mounted via SSHFS (authenticated as user U). The relevant filesystem on S has a quota set. How can a user on C see her quota? The quota command run on C ...
0 votes
1 answer
515 views

Keep losing sshfs connection on Linux Mint 19

Edit: I set the dev up with a brand new laptop with a fresh OS install. Connection was still lost. Moved her to a different desk (which would be a different port on the switch in the closet), and the ...
0 votes
0 answers
347 views

sshd Match directive

I encountered an issue on the way the sshd daemon is configured, here we have a couple of path exposed in RO by a server, the end user have to use the service in RO on their machine use sshfs to mount ...
  • 415
2 votes
1 answer
1k views

SSHFS mount to AWS Transfer for SFTP: cannot create regular file

I'm trying to setup an SSHFS mount point via Amazon's new service Transfer for SFTP. I can sftp into the endpoint just fine using sftp and can get/put files. I can mount it using sshfs. I'm having ...
1 vote
3 answers
1k views

Does SSHFS support ssh-agent forwarding?

I'd like to be able to mount my backup server on-demand by using my keys on my client terminal only as I don't leave my SSH keys on servers I manage. Does SSHFS support ssh-gent forwarding and how? ...
  • 780
22 votes
2 answers
17k views

Mount a SSHFS volume into a Docker instance

I use SSHFS to mount a remote filesystem on my host and I want to be able to access it from inside a Docker container. I mount the remote filesystem sshfs -o idmap=user,uid=$(id -u),gid=$(id -g) ...
  • 323
0 votes
1 answer
345 views

How to allow a Django application running on Apache to access a remote directory mounted with sshfs

I have a Django application that access a remote directory mounted with sshfs to upload files. The Django application has to read those files as well. The setup is running fine with the Django server (...
8 votes
3 answers
6k views

SSHFS over a jumphost

I have 3 computers. A, B, and C. A is the one I'm on now. B is a jumphost that I can SSH through from A to get to computer C using ssh -t B_host ssh C_host. What I'd like to do is mount C's file ...
  • 305
4 votes
2 answers
3k views

With sshfs, what causes the error "fuse: bad mount point `<directory>': Permission denied"?

I ran across this error while trying to mount a remote file system to my local host using SSHFS. The command I was using was in the form of: sshfs root@remote:/path/to/dir ./localDir I am logged ...
0 votes
1 answer
353 views

Can't ssh through user with mounted via sshfs home dir

There are 2 users on machine#0: user#0 and user#1. I can mount the desired dir from user#0 on machine#0 executing: sshfs user@hostname:/home/folder /home/folder The thing is that /home/folder has ...
3 votes
1 answer
1k views

use the arcfour cipher with sshfs and google cloud

I would like to use the arcfour cipher when mounting a drive using sshfs. However, if i specify sshfs -o Ciphers=arcfour my virtual machine resets the connection (I am able to sshfs without this ...
  • 145
0 votes
1 answer
1k views

CentOS 7: sshfs can't find fuse, even though fuse is loaded

When I try to run sshfs, I get the error fuse: device not found, try 'modprobe fuse' first. I already ran sudo modprobe fuse, but it just returns immediately without any output and the error persists: ...
0 votes
1 answer
3k views

How to properly chroot when using key based authentication within openssh-server

I'm running a Debian Stretch x86_64 server, with OpenSSH_7.4p1 Debian-10+deb9u3, OpenSSL 1.0.2l 25 May 2017. I want to use chroots in combination with OpenSSH server's internal SFTP system. My ...
  • 101
2 votes
1 answer
1k views

autofs can't mount a remote dir with sshfs on the host with deprecated key algorithm

Here is my configuration: /etc/auto.master /mnt/10 /etc/auto.10 uid=0,gid=0,--ghost /etc/auto.10 root -fstype=fuse,allow_other,follow_symlinks,ssh_command=/etc/ssh/sshpass.10.sh :sshfs\#...
  • 185
0 votes
0 answers
108 views

Protect users from accidental delete

I am currently designing an incremental, rotative backup system for a remote filesystem to be accessed over SSHFS. There is this one aspect I still haven't figured out: Protecting the users from ...
  • 1
2 votes
0 answers
536 views

Preserve (local) ownerships and permissions with sshfs

If I mount a sshfs point as root and use the option allow_other, then on the original server (SERVERA) the files are owned by the SSH user, and on the destination server (SERVERB) they are accessible (...
  • 145
1 vote
1 answer
104 views

SSHFS - serving remote dev code to my local browser, connecting to data behind a VPN

Apologies if this isn't the correct forum for this question. I'm toying with the idea of putting some of my dev code on a VPS, so I can access it easily from different places, and push some of the ...
1 vote
1 answer
337 views

Is it possible to disallow writes to a sshfs mountpoint?

Is it possible to disallow remote servers from writing to a sshfs mounted folder, either on server or client side?
0 votes
0 answers
159 views

Preventing chown, chmod and rm -r over sshfs

I recently did a chown on my home dir but forgot I had used sshfs to map a drive on a remote server. :( Is there a way to make sure no file altering command will "cross over" to the other side? :)
  • 23
3 votes
3 answers
5k views

sshfs file writes don't respect UID/GID mapping

I'm mounting my /home directory remotely using sshfs. Since UIDs and GIDs aren't the same on the server and client, I'm using idmap=file. Additionally, because of application requirements, I must ...
0 votes
2 answers
462 views

My rsnapshot is freezing without errors

I try to make backup-system. I try to use rsnapshot. description: Client with rsnapshot put data in sshfs-mounted folder (sftp backup-server). I make ssh-key, mounted it, everything fine. In ...
  • 129
-2 votes
1 answer
155 views

GUI Package Management on Remote Server

Usually I manage the packages on remote debian servers via SSH using aptitude or apt-get in CLI mode. Aptitude also does have an ugly interactive mode. However, on desktop systems I love the comfort ...
1 vote
1 answer
3k views

Permission denied: fusefs inside freebsd (freenas) jail

Host server: FreeNAS-9.10 (FreeBSD 10.3-STABLE) I've installed a jail, for backup purposes, mounting the to-be-backed-up filesystems of the FreeNAS host inside the jail. Backing up using borgbackup ...
  • 147
0 votes
1 answer
428 views

Can we use sshfs or NFS for LVM?

I want to create LVM using sshfs or NFS. Is it possible at all? I tried searching over web but did not find anything. Forgive me if this question is wrong for this community.
  • 119
3 votes
0 answers
784 views

Unison sync of sshfs mount - what can go wrong if the connection breaks?

I am syncing a local directory (say "/local") with a cloud storage server using Unison. The cloud storage is mounted to, say, "/mnt" via sshfs (with no-cache option), and I sync the two directories /...
  • 131
5 votes
1 answer
742 views

Rsync over sshfs skips filenames starting with underscore

I'm trying to sync a directory tree from OS X (10.11) to Ubuntu 14.04. While most of the files get transferred just fine, files with names starting with _ (underscore) do not. Here is the command I ...
  • 191
5 votes
1 answer
3k views

Why very slow / no directory caching with SSHFS?

I have the below in /etc/fstab and when I cd ~/dat0 and then do anything in there e.g. tab complete, it takes 10 seconds every time. I.e. it doesn't cache anything. Is there something that can be ...
0 votes
3 answers
160 views

Can I move a subtree containing files owned by 3 different users to an sshfs mount point?

I have a tree of files and folders, most of which are owned by the principal user we'll call "laurel". One of the subtrees is wholly owned by another user called "hardy". Finally, because Laurel & ...
  • 99
0 votes
1 answer
718 views

AutoFS/Automount doesnt mount ext4 imagefile on sshfs mount

I'm trying to automount an ext4 sparse imagefile on an sshfs mount but it doenst work like its supposed to be :/ I also mount the sshfs mount via autofs and this works like a charm but when I try to ...
1 vote
1 answer
227 views

Fuse SSHFS mount gets stuck with Sophos Antivirus

I have a problem with fuse sshfs and the running Sophos Antivirus Scanner for Linux Systems v9.11.0. I am running as OS RHEL7.1 with fuse-sshfs-2.5. The mounting via sshfs works fine when Sophos is ...