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
180 views

Remote filesystem, performance and caching (davfs vs cifs vs sshfs)

I'm hosting files on a Hetzner Storage Box. As for mounting those remotely, i have the choice between WebDAV, CIFS or sshfs. Once mounted, those files will be accessed by liquidsoap. The problem here ...
Domovoy's user avatar
  • 11
0 votes
0 answers
66 views

No read/write access to files owned by root, when using sshfs as root

I am using sshfs. I log in as root: sshfs [email protected]:/ /mnt/remotes/domain.pl-root (using keys). The login process is successful. When I create any file anywhere in /mnt/remotes/domain-root/, its ...
konrados's user avatar
  • 103
0 votes
0 answers
165 views

When mounting external disk in fstab via fuse.sshfs it requires password although identityfile is set

Using Ubuntu 22.04. My fstab entry: some_user@some_storagebox.com:~/somedir /mnt/volume fuse.sshfs defaults,allow_other,reconnect,_netdev,users,ServerAliveInterval=15,identityfile=/root/.ssh/id_rsa,...
fueggit's user avatar
  • 113
0 votes
0 answers
149 views

SSHFS performance tanks, why?

I have two Ubuntu 22.10 computers connected one to another via SSHFS. When I copy small files there is no problem but... once I start copying several gigabytes of data at a time, the performance sinks ...
ArekBulski's user avatar
0 votes
0 answers
93 views

sshfs slow from one machine but not from another

Situation I have two web servers that connect to a file repository over sshfs: /usr/bin/sshfs -f -o reconnect -o follow_symlinks -o allow_other \ repo@files3:/var/repo /var/repo On one web server ...
Lucas's user avatar
  • 193
5 votes
0 answers
1k 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?
a06e's user avatar
  • 373
0 votes
0 answers
247 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 ...
lucian's user avatar
  • 131
0 votes
1 answer
872 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, ...
Nuno's user avatar
  • 603
1 vote
1 answer
669 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 ...
PixelPaul's user avatar
  • 353
0 votes
0 answers
177 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/...
zlg's user avatar
  • 1
2 votes
0 answers
1k 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 ...
Taz's user avatar
  • 121
1 vote
0 answers
778 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 ...
e-pirate's user avatar
1 vote
0 answers
209 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, ...
atevm's user avatar
  • 111
0 votes
1 answer
677 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 ...
Etua's user avatar
  • 15
0 votes
1 answer
127 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 ...
Anton K.'s user avatar
1 vote
0 answers
406 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 ... ...
Dhanabal M's user avatar
0 votes
1 answer
1k 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 ...
FTG's user avatar
  • 3
1 vote
2 answers
665 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 ...
Samarth S's user avatar
  • 111
1 vote
1 answer
2k 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: [email protected]:/home /mnt/data-remote fuse.sshfs ...
Cobra_Fast's user avatar
3 votes
0 answers
3k 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 ...
whoasked's user avatar
  • 269
1 vote
1 answer
265 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 "...
Russell Fulton's user avatar
0 votes
0 answers
1k 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 ...
user65297's user avatar
  • 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 ...
dippynark's user avatar
  • 232
2 votes
0 answers
244 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 ...
Lasse Kliemann's user avatar
0 votes
1 answer
732 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 ...
DevOpsSauce's user avatar
0 votes
0 answers
598 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 ...
AtomiX84's user avatar
  • 435
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 ...
Shawn Welch's user avatar
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? ...
dzhi's user avatar
  • 820
26 votes
3 answers
23k 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) ...
Ralph's user avatar
  • 363
0 votes
1 answer
448 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 (...
user2641103's user avatar
9 votes
3 answers
9k 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 ...
m4p85r's user avatar
  • 315
4 votes
2 answers
5k 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 ...
user984869's user avatar
0 votes
1 answer
438 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 ...
Anton Ostrouhhov's user avatar
3 votes
1 answer
2k 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 ...
Alex's user avatar
  • 145
0 votes
1 answer
2k 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: ...
Robin Hartmann's user avatar
0 votes
1 answer
4k 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 ...
Felix's user avatar
  • 101
2 votes
1 answer
2k 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\#...
igoryonya's user avatar
  • 195
0 votes
0 answers
119 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 ...
poinu's user avatar
  • 1
2 votes
0 answers
717 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 (...
Antonello's user avatar
  • 145
1 vote
1 answer
121 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 ...
Kevin Whitaker's user avatar
1 vote
1 answer
388 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?
SteffenNielsen's user avatar
0 votes
0 answers
221 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? :)
SamTzu's user avatar
  • 33
5 votes
3 answers
6k 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 ...
Nathan Vance's user avatar
0 votes
2 answers
498 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 ...
mr.frog's user avatar
  • 129
-1 votes
1 answer
232 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 ...
Pinke Helga's user avatar
1 vote
1 answer
4k 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 ...
zoot's user avatar
  • 267
0 votes
1 answer
505 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.
Shiv's user avatar
  • 119
3 votes
0 answers
914 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 /...
André's user avatar
  • 131
5 votes
1 answer
894 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 ...
Nic Nilov's user avatar
  • 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 ...
Jasmine Lognnes's user avatar