The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
11 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
18 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 ...
0
votes
0answers
18 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
43 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
40 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
195 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
135 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? ...
5
votes
1answer
3k 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
101 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 (...
0
votes
1answer
888 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
965 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
140 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
735 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
486 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
641 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 ...
1
vote
1answer
613 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
62 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
280 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
57 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
252 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
91 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? :)
2
votes
3answers
1k 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
232 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
94 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
246 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
444 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
343 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
729 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
78 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
495 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
170 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
471 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
45 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
604 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 ...
3
votes
1answer
4k 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
66 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
378 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
299 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 ...
6
votes
2answers
10k views

sshfs permission denied even for root user

I use sshfs to mount a remote folder from another server to the local server. Mounting the remote folder works without a problem using the following command: sshfs -o allow_other ...
1
vote
0answers
617 views

Write Permissions Denied when using sshfs to Mount Remote Directory on Boot

I have two Cent OS 7 servers I am trying to mount a directory from my host server to my client server. I want this to automatically mount on boot. On my host machine (hostmachine.local) I setup a ...
1
vote
0answers
575 views

Automatically change remote user with sshfs

I have two remote servers, foo and bar. On both servers I have a user git (with different uid and gid). Both servers are running Debian distributions. Both servers have their each others' root ssh ...
1
vote
4answers
466 views

reliably write database dump directly to remote filesystem (Linux)

I need to move a very large database (~320 GB) from server1 to server2 (Linux). Because of different extension versions, the database can only be restored on server2 from a dump file as described here....
0
votes
0answers
571 views

SSHFS mount with sudo - how to restrict privileges?

I need to mount a remote server (server1) with an SSHFS mount on server2 via an automated script. I need to be able to access some files on server1 that require root access, but I don't want to enable ...
0
votes
1answer
1k views

coreos mount cifs or sshfs or any other networked file system

For development I want to mount a file share from my windows dev box inside my CoreOS VM, so I can then mount that volume inside a container. CoreOS doesn't appear to support doing this, and comes ...
0
votes
1answer
155 views

SSH and SSHFS not completely connecting

I'm trying to connect between an Ubuntu and CentOS and reverse. From both sides I get black screen where I can press enter but nothing happens, not being asked for password. examples: SSH root@1.2.3....
1
vote
1answer
361 views

sshfs mount using sudo'ed account

We have a linux system ferguson. On ferguson: I have user id a123. As user id a123, I am able to sudo su into userid admin. There is no direct login for the userid admin. We have to use our personal ...
4
votes
1answer
1k views

What are large read requests in sshfs and is it recommended to enable them?

sshfs has the following option: -o large_read issue large read requests (2.4 only) What exactly does this do and how large are large read requests? Would it be recommended generally or ...
0
votes
2answers
2k views

Is it better to use rsync over SSHFS or over CIFS as remote repository, having no option for rsyncd?

I have a NAS that is only capable of CIFS, AFS, SSH (no rsyncd capabilities, no NFS). I have to backup very large files (vm images) and I usually set a rsync server on the backup device then I do a ...
0
votes
1answer
65 views

Storing backups on a remote filesystem

I have a FreeNAS solution, in which I'll would like to save my backups. Currently I was doing some scripting to rsync/tarball, but I want a something more easy to manage, so I figure out, to run a ...