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
0
votes
0answers
28 views

How do I sshfs with a jump host and 2 factor authentication on windows?

How do I sshfs with a jump host and 2 factor authentication on windows? I work with both Linux and Window. On Fedora I just configure the jump host setup in a config file in the .ssh folder and use ...
0
votes
1answer
67 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, ...
0
votes
0answers
24 views

SSHFC failed to mount : Operation not permitted

I'm trying to do a SSHFS mount on the external server (I don't have root permissions but I have permissions to my specific folder named the same thing as my username). However I'm getting the error ...
0
votes
0answers
39 views

sshfs mount not shown correct inside docker container

We have a sshfs mounted on the host, that is also a volume inside a docker container. sshfs is called with gid+uidfile for correct mapping to www-data. That is what we need. This is working and ...
0
votes
0answers
59 views

How do I sudo over sshfs, but on windows

I have a very similar issue to How do I sudo over sshfs?, with the exception I can't find a way to do it on windows. I need sudo privileges to write some files, but can't figure it out on windows port ...
0
votes
1answer
149 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 ...
0
votes
0answers
18 views

How to specify SSHFS capacity

Is there anyway to set SSHFS volume size with option cmd's? I already tried to find option cmd's in https://linux.die.net/man/1/sshfs but it seems that there are no settings for that. But some SFTP ...
1
vote
0answers
24 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
vote
0answers
327 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 ...
0
votes
0answers
76 views

sshfs logging file access with journalctl and systemd

I need to see what files are being accessed by which users using sshfs to my server. I have read that this uses the sftp mechanism. All of the instructions then talk about auth.log, rsyslog.d and ...
1
vote
0answers
102 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
0answers
97 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, ...
0
votes
1answer
200 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 ...
0
votes
1answer
52 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
0answers
135 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
1answer
370 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 ...
0
votes
2answers
289 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
1answer
596 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
0answers
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 ...
1
vote
1answer
122 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
0answers
322 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 ...
0
votes
1answer
734 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 ...
2
votes
0answers
122 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
1answer
318 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
0answers
293 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 ...
0
votes
0answers
761 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
3answers
720 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? ...
18
votes
1answer
13k 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) ...
0
votes
1answer
278 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 (...
6
votes
3answers
4k 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 ...
4
votes
2answers
2k 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
1answer
262 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 ...
2
votes
1answer
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 ...
0
votes
1answer
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
1answer
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 ...
2
votes
1answer
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\#...
0
votes
0answers
92 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 ...
2
votes
0answers
373 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 (...
1
vote
1answer
75 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
1answer
286 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
0answers
122 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? :)
3
votes
3answers
4k 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
2answers
401 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 ...
-2
votes
1answer
111 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
1answer
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 ...
0
votes
1answer
360 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.
3
votes
0answers
648 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 /...
4
votes
1answer
589 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 ...
5
votes
1answer
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
3answers
132 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 & ...