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
0 answers
46 views

Keeping remote file system connected with disconnects and roaming IP changes

I have a Linux laptop system set up to connect to a remote file system on a dedicated host. I'm using sshfs at the moment. When I suspend the laptop or connect to a different network, the ssh ...
Lesser Cormorant's user avatar
1 vote
1 answer
43 views

Use sshfs session to run commands on the remote

Something has happened with the SSH process on a remote server so that now when trying to connect it rants: kex_exchange_identification: read: Connection reset by peer It looks like the SSH daemon ...
Greendrake's user avatar
2 votes
1 answer
151 views

Processes in uninterruptible sleep when the server is not responding

I'm using sshfs to mount and interact with directories and files located on a remote server. The command I'm using is: sshfs -o follow_symlinks host:dir mountpoint -o reconnect Sometimes, after a ...
TVG's user avatar
  • 143
0 votes
0 answers
25 views

Can not unmount ssh connection after hibernation or momentary connection loss

I work on a mounted directory to a cluster through sshfs. However, sometimes my connection fails for a second and the mounting stops working. The problem is that I can not umount to be able to restart ...
Pau Clavell-Revelles's user avatar
2 votes
0 answers
74 views

how to backup remote location containing hard links, without rsync

I want to backup backintime-data from an internet-facing, remote machine running debian 11 (src). That is the hardlinks-part from the title. I want to back it up to a (very dumb) NAS (dest) in the ...
Paul w. Muad'dib's user avatar
0 votes
0 answers
627 views

Diagnosing slow sshfs transfer speeds (as compared to http)

I've been trying to set up a way to transfer a reasonable amount of data between two servers (remote and local, both running ubuntu server), including some backups (zipped), pictures, home movies, ...
daniel's user avatar
  • 1
3 votes
1 answer
178 views

sshfs login problem on android - invalid argument

I am login into android phone as usual, but facing problem as below: Try 1: (failed) $ sshfs -p 8022 [email protected]:/storage ~/sshfs-mount2 -o IdentityFile=~/.ssh/termux-rsa sshfs: invalid ...
andrew_ysk's user avatar
0 votes
1 answer
48 views

Unable to replicate fuse sshfs setup, with regular sshfs command

Goal: mount remote folder via sshfs on local system on boot I have an empty USB attached to my machine: /media/steve/downloads-remote/ There is one folder inside the drive Downloads The permissions of ...
Amir's user avatar
  • 101
0 votes
1 answer
83 views

how can I detect if my infinite cp command has failed using bash

I have a little data collector, a Raspberry Pi Zero W, which, on boot, mounts a remote folder on mnt using sshfs. The data transfer is effected using a cp command, e.g., cp device file & where ...
Dave Stevens's user avatar
0 votes
1 answer
542 views

sshfs/fuse set limit/max size for a mounted folder on the ssh server for the connected user with sshd_config?

How can i set a limit size for a mounted sshfs/fuse folder in sshd_config? With this command i sshfs/fuse a folder from the server to a folder on my machine. sshfs -o IdentityFile=/home/user/.ssh/[KEY]...
Z0OM's user avatar
  • 3,148
0 votes
1 answer
579 views

Mount entry in /etc/fstab with SSHFS and a proxy

I'm trying to mount a remote disk using SSHFS that is not directly accessible, i.e. I need to use a proxy, like local -> proxy -> remote. I'm using only key-based auth for both. The following ...
JCGoran's user avatar
  • 51
0 votes
1 answer
1k 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.: ...
jim7475's user avatar
  • 31
1 vote
1 answer
1k 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/...
23176xsk's user avatar
1 vote
2 answers
792 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 ...
Z0OM's user avatar
  • 3,148
1 vote
1 answer
715 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#[email protected]:/home/hd03_00_backup_server/ /mnt/server_backup fuse.sshfs IdentityFile=/...
user154501's user avatar
3 votes
0 answers
1k 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 utility ...
dig_123's user avatar
  • 143
0 votes
2 answers
440 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 ...
user18002099's user avatar
0 votes
2 answers
151 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 ...
Rather Vi's user avatar
3 votes
2 answers
653 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 ...
MountainX's user avatar
  • 17.3k
2 votes
1 answer
4k 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 : [email protected]:/home/ssh2/SSHserver /home/asir3/Escritorio/SSHclient fuse....
Javier G.Raya's user avatar
0 votes
0 answers
168 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 ...
Daniel F's user avatar
  • 827
0 votes
0 answers
163 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 ...
Manveru's user avatar
  • 101
2 votes
0 answers
911 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 [email protected], the connection will mostly stay up. If there's particularly bad lag, output (and echoed input) will take ...
Chris Henry's user avatar
0 votes
2 answers
1k 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 ...
OZ1SEJ's user avatar
  • 175
1 vote
0 answers
715 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,...
greenvironmentalist's user avatar
4 votes
1 answer
1k 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 [email protected]:/...
Stewart's user avatar
  • 12.7k
0 votes
1 answer
894 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 ...
e-info128's user avatar
  • 175
1 vote
0 answers
184 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. ...
nass's user avatar
  • 1,438
2 votes
1 answer
298 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 [email protected]:/proc ~/procAtPi ls -la ~/...
fcdt's user avatar
  • 123
1 vote
1 answer
260 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-...
Martin's user avatar
  • 11
3 votes
0 answers
673 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 ...
Pierrick Vodoz's user avatar
0 votes
1 answer
477 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 ...
Ninguém's user avatar
  • 151
1 vote
2 answers
645 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 | ...
Scindix's user avatar
  • 177
1 vote
2 answers
1k 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 ...
mifrey's user avatar
  • 13
2 votes
1 answer
853 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 ...
pLumo's user avatar
  • 22.3k
1 vote
0 answers
137 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 ...
Peeyush Kushwaha's user avatar
2 votes
0 answers
979 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 ...
Siscia's user avatar
  • 121
2 votes
0 answers
159 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 ...
Pranjal Doshi's user avatar
0 votes
1 answer
126 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,...
sugond desenuts's user avatar
1 vote
0 answers
720 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#[email protected]:/mnt/data /data fuse user,_netdev,nonempty,...
Marek Suchánek's user avatar
0 votes
1 answer
249 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 ...
Rob's user avatar
  • 111
0 votes
1 answer
1k 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 [email protected]:/remote/dir /local/dir I've mounted my directory using the &...
Jonathan Ting's user avatar
0 votes
1 answer
252 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 ...
user123065's user avatar
3 votes
1 answer
2k 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 ...
mschilli's user avatar
  • 217
1 vote
1 answer
2k 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>:...
cfgauss's user avatar
  • 11
2 votes
0 answers
2k 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 ...
Ronan97's user avatar
  • 43
9 votes
1 answer
2k 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#[email protected]:/remote-dir /mnt/local-mnt fuse rw,exec,user,allow_other,noauto,reconnect,...
David Ljung Madison Stellar's user avatar
1 vote
1 answer
457 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 ...
Mark McDonald's user avatar
2 votes
1 answer
260 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: ...
Ole Tange's user avatar
  • 33.7k
2 votes
1 answer
497 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. ...
Wamseln's user avatar
  • 121

1
2 3 4 5