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
1answer
35 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
0answers
10 views

Trying to understand how group works with SSHFS

I am trying to connect to a server using SSHFS from a client computer. On the server, I have a user named "A" which I have added into the group "csws". For a file with the ...
0
votes
0answers
7 views

sshfs to two authentication ssh server

I am using win-sshfs from this project. The server I am going to connect has two authentication. The problem is that I cannot input the code due to the limitation of the software. I am wondering that ...
0
votes
1answer
26 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 ...
0
votes
0answers
41 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
53 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
62 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 ...
0
votes
0answers
240 views

SSHFS - Can mount from command line but not through fstab

I have a FreeNas 11.2 server on which I have a user named "unifi-video" for which I have set a home folder and given a public key. I also have another machine that acts as a Unifi Video NVR (Network ...
1
vote
1answer
115 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
953 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
65 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
113 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
322 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 ...
1
vote
0answers
59 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
165 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
178 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
437 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
2answers
444 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? ...
12
votes
1answer
8k 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
182 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 (...
3
votes
2answers
3k 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 ...
2
votes
1answer
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
191 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 ...
1
vote
1answer
934 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
774 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
1k 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
822 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
76 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
335 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
63 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
272 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
107 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
3k 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
324 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
103 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
2k 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
313 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.
2
votes
0answers
553 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
436 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
2k 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
101 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 & ...
0
votes
1answer
594 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
1answer
194 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 ...
0
votes
1answer
533 views

SSHFS mount remote directory which subfolder are mounted locally

I have two servers FTPa and FTPb Each server is running PHP web file transfer app that sits in /var/www/html/files/ On both servers some of the app subfolders are mounted with folders inside /sftp/ ...
1
vote
0answers
51 views

Samba Share on remote machine

I'm with the following environment: I have 3 computers: A machine working as a storage (Ubuntu 14.04) (Khan), a Samba Server (Ubuntu 14.04 with Samba 4.3.9 with a NT4-like Domain) (Vader) and a ...
1
vote
1answer
726 views

Why does SSHFS I/O latency test much faster than local RAID & NFS?

SSHFS tests for server I/O latency using dd returns very surprising results, so much so that I'm worried this might be some problem either with the test method or configuration. Test 1 on local RAID ...
4
votes
1answer
6k views

Auto-mount SFTP share in fstab

I have a SFTP share on my server wich use standard authentication. On my client, I have edited the /etc/fstab file and added : user1@192.168.1.50:/ /mnt/share fuse.sshfs port=22,defaults,_netdev 0 ...
2
votes
0answers
76 views

keep writing to file after network filesystem disconnects

I'm trying to transfer a huge growing logfile in a way that will survive network partitions between the client and server. If the network connection is lost, I cannot afford to retransmit the entire ...
4
votes
2answers
496 views

Prevent writing to unmounted sshfs mount point

Assuming I have a folder /mnt/mountpoint that I use as a mountpoint for some sshfs-mounted directory: sshfs user@host /mnt/mountpoint Now, I want to prevent applications to write to /mnt/...
1
vote
2answers
315 views

What does take all the cpu here?

On a small SSD VPS I got 2 GB of RAM and 2 vCPU core (dedicated to my server), virtualized via KVM. So far so good. The server is mainly used for databases (MySQL) and fast network file storage (via ...