Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [sshfs]

sshfs is a FUSE file system which allows to mount a directory on a remote system over SSH. It requires the SFTP subsystem being installed (default with OpenSSH server, but not included with smaller SSHd implementations like e.g. dropbear) on the remote system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

automount SSHFS on Ubuntu 20.04

looks like all the "automount SSHFS" are outdated and not working anymore on today desktops. If I have a microSD card, that is shared via SFTP on an rpi, how can I auto-mount it on eg.: ...
user avatar
0 votes
1 answer
41 views

Mount root filesystem with user permission using sshfs

I want to use sshfs to mount filesystem folder on my machine (let's say ~/home). I would like to be able to edit files inside the / folder that got mounted using any editor (for example, edit /etc/...
user avatar
0 votes
0 answers
20 views

Accessing sys/kernel/debug through SSH via sshfs

Following scenario: We have an embedded Linux system 'A' for which we want to debug some driver and device registers through /sys/kernel/debug, aka using FUSE's debugfs. Our test software is running ...
user avatar
1 vote
1 answer
290 views

bash count files and directory, summary size and EXCLUDE folders that are fuse|sshfs

I need help for a bash script that counts files and folders in a specified directory on a Linux system (Debian), but I want to exclude a specified folder. I have a main directory named workdir with ...
user avatar
1 vote
1 answer
73 views

SSHFS automount fstab with RSA Keypair asking for password

I have a problem. I added a SSH Server to mount to my server. I added the following line to /etc/fstab. sshfs#user@server.com:/home/hd03_00_backup_server/ /mnt/server_backup fuse.sshfs IdentityFile=/...
user avatar
0 votes
0 answers
22 views

Set umask for sshfs on OEL

Reading the other posts here, such as set umask for sshfs-mounted filesystem, I am still not getting expected results. Both my systems run OEL7. on machine1, I mount a folder from machine 2 by putting ...
user avatar
2 votes
0 answers
57 views

list all network storage based mounted filesystems in Linux

My requirement is to find out all such directories in Linux which are mount points for network based storage/file systems (like NFS , SSHFS, CIFS, SMB, etc) I did some research, and there is no ...
user avatar
  • 133
0 votes
0 answers
21 views

Ranger is laggy and crashing while using in directory mounted by SSHFS

I mount directory from my server it gets super laggy. It shows all directories and files but It is irresponsive. after quiting it I see this error: Exception ignored in: <generator object Directory....
user avatar
0 votes
2 answers
61 views

How to check in bash if a file is currently in use from a sshfs mount

I have a home server being used as a nas. The storage is mounted on my desktop via sshfs. What I would like to accomplish is to write a bash script which unmounts the nas and powers it down at a ...
user avatar
0 votes
2 answers
48 views

sshfs-mounts mysteriously disappear at login time

Status: I have created a systemd service which successfully calls a shell script which in turn successfully mounts a few ssh shares using SSH keys (passwordless access). Problem: When I log in these ...
user avatar
1 vote
2 answers
149 views

How to execute a script using sudo when it resides on an SSHFS mount?

I am not asking about mounting the SSHFS mountpoint, which is the topic of all the similar questions I found. My mountpoint (/path/to/sshfs/mount/) is correctly mounted and I can list, read, write all ...
user avatar
  • 15.4k
2 votes
1 answer
572 views

Mount with sshfs in /etc/fstab file

I am trying to connect to sshfs with fstab on Ubuntu, but the files are not loading. In the fstab I put the following : ssh2@192.1.1.1:/home/ssh2/SSHserver /home/asir3/Escritorio/SSHclient fuse....
user avatar
1 vote
1 answer
120 views

Copying files over SSHFS/SFTP/SCP is slow [closed]

I'm trying to copy large files (~5GB, one file) between Windows and (remote) Linux. Windows and Linux are on the same LAN, but over VPN connection. They are physically far from each other, but ...
user avatar
  • 207
0 votes
0 answers
54 views

Restrict access to a directory to just one process and its children

I want to mount a remote directory via sshfs to the local machine in order to use a code editor (Visual Studio Code) to locally edit files on the remote location. Is there a way to limit access to ...
user avatar
  • 571
0 votes
0 answers
41 views

Total file system freezes after server disconnection with sshfs

I access a server through vpn (with forticlient sslvpn) and mount a file system on my laptop with sshfs. But sometimes i get randomly disconnected from the vpn. When this happens not only I lose ...
user avatar
  • 101
1 vote
0 answers
232 views

Why is SSHFS so much less stable than SSH?

If I'm on a very slow and/or slightly hiccupy internet connection, and I ssh foo@bar.baz, the connection will mostly stay up. If there's particularly bad lag, output (and echoed input) will take ...
user avatar
0 votes
2 answers
261 views

How to sync two disks - continually?

I have to HDD drives on two different servers that I need to sync regularly. Until now, I've been using rsync over sshfs, first from one to the other, then from the other to the first, but this method ...
user avatar
  • 147
1 vote
0 answers
200 views

automatically reset sshfs when it locks up, remount fails unless done manually

i have 2 local dirs on my server mounted on a remote server. Local maintains connections with autossh -M 23 -R 24:localhost:22 user@server While remote mounts with dirs-sshfs.sh sshfs -o reconnect,...
user avatar
3 votes
1 answer
521 views

Using systemd to mount remote filesystems in user-bus

I'd like to mount a directory from a remote machine in my /home/stew/shared. After installing sshfs and using ssh-copy-id to my remote machine, I can do this: stew@stewbian:~$ sshfs stew@192.168.1.9:/...
user avatar
  • 8,649
0 votes
1 answer
270 views

openssh/sftp-server virtual chroot does not work

By example, when connect to ssh and execute /usr/libexec/openssh/sftp-server -d /opt/files can get / root directory from a sshfs connection. By example: have a test user and from authorized_keys have ...
user avatar
  • 141
1 vote
0 answers
49 views

How can I [nfs] share a folder that contains [nfs] shares from another computer (nfs is replaceable by other protocols)

I have a number of network storage nodes, and a primary server that everyone connects too. I would like to export shared folders from the storage nodes , so as to mount them on the primary server. ...
user avatar
  • 1,408
3 votes
1 answer
120 views

How to access /proc/ file (procfs) via SSHFS

Using a computer with Ubuntu 16.04 (no update suggestions please) I mounted /proc/ at my Raspberry Pi 3B + (linux kernel version 4.19.88) via SSHFS: sshfs pi@192.168.0.4:/proc ~/procAtPi ls -la ~/...
user avatar
  • 133
1 vote
1 answer
124 views

Launcher sshfs mount disappears after terminal is closed

I want to make a launcher in my MATE desktop that executes script for sshfs mount: #!/bin/bash sshfs login@server:/ /media/user/MOUNT_FOLDER/ This script is called by my launcher: #!/usr/bin/env xdg-...
user avatar
  • 11
3 votes
0 answers
279 views

sshfs mount and permission

I'm gonna go crazy! I've been trying to handle a sshfs mounted folder for several days, but always get a permission denied on file. The context: Local Server (L) and a Remote server (R). Only user X ...
user avatar
0 votes
1 answer
249 views

sshfs mount on login with systemd and unmount on last logout

I'd like to mount (with sshfs) my documents directory - as unprivileged user - on first login and unmount it on last logout (not every logout, of course). I have key-based authentication working ...
user avatar
  • 111
0 votes
2 answers
295 views

Resume incomplete disk image with dd over ssh

What I did so far I wanted to create a disk image of my server HDD partition and copy it to my desktop (client). I used the following command on the server: dd if=/dev/md3 status=progress bs=500k | ...
user avatar
  • 137
1 vote
2 answers
528 views

Browse files through SCP - Works with WinSCP but not from Linux

I can connect to my SSH server using WinSCP from Windows and by selecting the file protocol "SCP", selecting "SFTP" does not work" for this server. I am desperately trying to ...
user avatar
  • 13
0 votes
1 answer
196 views

Mount sshfs and elevate priviliges (sudo)

I mount a remote directory using sshfs: sshfs myuser@myserver:/ /path/to/mountpoint This works just fine. But I need to acces directories on myserver that are only accessible by root. root login is ...
user avatar
  • 20.6k
0 votes
0 answers
25 views

too many files on a network mount causes mount to take a lot of time

If I try to mount using sshfs -o allow_other,default_permissions user@server:/dir-with-lots-of-subprojects ~/projects then it's taking an unacceptably long time (> 10 seconds, and perhaps even ...
user avatar
1 vote
0 answers
560 views

Improve performance of sshfs for a lot of small files

Mounting a network filesystem backed by sshfs show very slow performance when trying to write a lot of relativity small files. Is there any options to improve the situation? The filesystem is mounted ...
user avatar
  • 111
2 votes
0 answers
75 views

directory on `ls -l` showing `?` on most of the details

I have shared a tmp directory on Ubuntu, using sshfs userid@ip:path_to_dir/rdir /path_to_dir/tmp after this I deleted rdir but when I tried umount /path_to_dir/tmp it was unable to do that. Now ...
user avatar
0 votes
1 answer
62 views

need help with sshfs

I can't get sshfs to work, no matter what I try it won't accept my password. My hostname is netnoob44 and my username is seeder, and I am trying to use it like this. sudo sshfs -o allow_other,...
user avatar
1 vote
0 answers
315 views

Cannot change ownership in SSHFS/FUSE

I encounter permission denied when trying to change the owner using chown of a folder on mounted SSHFS: # /etc/fstab sshfs#ubuntu@my.remote.tld:/mnt/data /data fuse user,_netdev,nonempty,...
user avatar
0 votes
1 answer
138 views

sshfs appears to mount, but ls & cp on local mount-point hang?

I am FUSE mounting a remote FreeBSD machine with sudo sshfs -C user@remote-ip:/home/user/ /mnt/localmnt/ -o allow_other -o SmartcardDevice=/dev/hidraw7 to authenticate via an OpenPGP smartcard ...
user avatar
  • 111
0 votes
1 answer
576 views

SSHFS: Permission denied when opening directory from application even with "allow_other"

I'm trying to use sshfs to open a remote directory in the Spotify snap application on Linux Mint. sshfs -o allow_other user@example.com:/remote/dir /local/dir I've mounted my directory using the &...
user avatar
0 votes
1 answer
113 views

Keep sshfs connection when switching from wired to wireless network

On my laptop, I often mount the content of my NAS through sshfs, for ease of access. I usually do so with an ethernet cable plugged in, as it makes browsing the files more smooth than with wifi. But ...
user avatar
3 votes
1 answer
548 views

git over sshfs (with idmap): unable to append to '.git/logs/HEAD': Permission denied

Problem: I have a git repository mounted via sshfs and cannot commit changes with the following error message: fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Permission ...
user avatar
  • 207
1 vote
1 answer
1k views

How can I use a reverse tunnel with sshfs?

I have a local machine which connects via ssh to a remote machine using a middle machine and a reverse ssh tunnel from remote to middle: remote$ ssh -p <sshd port> -NTR <local port>:...
user avatar
  • 11
1 vote
0 answers
856 views

Help debugging sshfs error: "fusermount3: mount failed: Operation not permitted"

I have spent a considerable amount of time trying to debug where the issue lies but am unable to find a fix. I am working on a 32bit CentOS system and have installed sshfs and fuse via nix. When I ...
user avatar
  • 33
9 votes
1 answer
1k views

'exec' option ignored in fstab for sshfs, need to specify to 'mount' on command-line?

I'm using sshfs in my fstab to mount a filesystem in Ubuntu 18.04.04 LTS: sshfs#dave@myservergoeshere.com:/remote-dir /mnt/local-mnt fuse rw,exec,user,allow_other,noauto,reconnect,...
user avatar
1 vote
1 answer
208 views

Showing a symlink as-is over an sshfs mount

I have a filesystem on the host that contains symlinks (e.g. /foo/bar -> /baz/bar). I'm able to mount the filesystem over sshfs fine, but the symlink is resolved on the client, e.g. (they're ...
user avatar
1 vote
1 answer
124 views

Autofs: /sshfs-dir

The solution to having a dynamic /nfs dir proved to be extremely simple: https://unix.stackexchange.com/a/584475/2972 I am wondering if I can do the same for sshfs. Let us assume that I can run: ...
user avatar
  • 29.7k
1 vote
1 answer
295 views

resources mounted via sshfs and fstab on a nginx-server give 404 errors - gone on refresh

Here is a scetch of the situation: I'm running a nginx server (machine 2) which provides the work of our students. The student work itself lies on another machine (machine 1): our gitolite server. ...
user avatar
  • 111
1 vote
1 answer
608 views

How to exclude folders in sshfs mounting?

Is it possible to mount a folder with --no-recursive option and --folder-exclude, maxdepth options?
user avatar
  • 922
0 votes
1 answer
173 views

ssh into mac from raspberry pi

I am trying to mount a shared drive that exists on my mac in my raspberry pi. I tried searching many different threads on stackoverflow and stackexchange and couldn't find any working solutions. I ...
user avatar
-1 votes
1 answer
482 views

What's the default port of SSHFS?

I tried to Google this and I found results. Either this is not very documented, either there's something I don't understand but should. It seems like it may be port 9876 like in the documentation, ...
user avatar
0 votes
1 answer
89 views

Modified mask/effective doesn't apply when creating files over ssh/sshfs vs. on machine itself (same user)

I set up mask like setfacl -R -d -m m::rw ., and it works fine on the local machine (that I am ssh'd in right now, its headless). I can have two users modify and read the directory. But when I am ...
user avatar
  • 1
3 votes
2 answers
1k views

SSHFS: Cannot umount / re-mount remote directory after connection is interrupted

I often use sshfs to mount a remote directory to make it appear as local: sudo sshfs -o allow_other myname@server:/remote/path /mnt/remote/ Occasionally there could be interruption to the connection ...
user avatar
  • 241
1 vote
1 answer
296 views

Define systemd service conditional to network ID

I have the following problem: I have my network drive in my home network that I would like to mount via sshfs. Being in my local network I don't have to care that much about encryption and could use ...
user avatar
0 votes
1 answer
579 views

sshfs in fstab connection reset with ssh tunnel in ~/.ssh/conf when 'manual' command works fine

I'm trying to set up an sshfs mount in fstab for persistent mounting of a network directory that has to be accessed via an ssh tunnel. my .ssh/config looks like this: Host A Hostname outer....
user avatar

1
2 3 4 5