Skip to main content

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
33 views

Why does rsync not copy the other execute bit when copying to an sshfs mount?

I have a mounted sshfs drive at /mnt/backup_datascrape with permission rwxrwxr-x. I am trying to copy a directory foo with permission rwxrwxr-x to that mount using rsync while preserving the ...
geckels1's user avatar
  • 163
0 votes
1 answer
87 views

How to mount sftp server with sshfs

It is simple enough to connect sftp server with lftp command without any key or password : lftp 192.168.31.130:3721 lftp 192.168.31.130:~> ls drwxr-xr-x 1 nobody nobody 3488 Dec 22 20:17 ...
showkey's user avatar
  • 405
0 votes
0 answers
21 views

What are those stuck ssh processes after accessing file server in Caja

I regularly access some remote file server in Caja from remote locations where I don't have a vpn set up. I assume most users of this platform are familiar with that. Whenever the network connection ...
basic6's user avatar
  • 6,345
0 votes
0 answers
71 views

Use sshpass for SSHFS with a proxy jump

I want to automatically mount an SSHFS directory with a proxy jump. Initially, i mount my SSHFS like this : sshfs -o ProxyJump=user_jump@jump_host user_final@final_host:/ How can i mount my SSHFS ...
Zylar's user avatar
  • 1
0 votes
0 answers
9 views

ssh : through router port forwards can mount sshfs but can't get a ssh terminal session

arch with openssh 9.7p1-1 ,sshfs 3.7.3-1 This fstab entry works just fine. [email protected]:/mnt/sda/srv /home/stephen/srv fuse.sshfs x-systemd.automount,x-systemd.requires=network-online.target,...
Stephen Boston's user avatar
0 votes
1 answer
97 views

Operation not permitted when writing in sshfs

I use image-backup to backup my Rpi. I backup directly on an FTP server and I do so via sshfs. This is how I connect in my /etc/fstab: MYUSERNAME@MYSERVER:/home/myuser/rpi_backup /mnt/MYSERVER fuse....
bernhard's user avatar
1 vote
1 answer
58 views

For SSHFS, can directories and file inherit same permissions as parent directory?

Further to this post, I found out that if the permissions for other should be ---, then I can use (it seems to work): setfacl -R -m d:o::0 test But when using SSHFS, permissions won't be retained. ...
charleslcso's user avatar
0 votes
0 answers
29 views

Permission Denied error when I try to open the image file stored on the ZFS disk accessed through sshfs from another machine

I would like to boot the FreeBSD 13.2 image file using Libvirt + virt-manager. I have stored the image on the external hard drive,"formatted" with ZFS while I'm using Devuan 5 installed on ...
Marietto's user avatar
  • 549
0 votes
0 answers
89 views

How to fix TimeShift not restoring due to fstab sshfs files

I tried to update my nvidia drivers via the pop shop and it went wrong. Now I would like to restore my system with TimeShift. Pop OS does not use GRUB so when selecting restore I went to "...
NicoFish's user avatar
0 votes
0 answers
66 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
159 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
289 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
60 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
131 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
2 votes
0 answers
1k 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
  • 21
3 votes
1 answer
266 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
63 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
136 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
898 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,189
0 votes
1 answer
890 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
  • 61
0 votes
1 answer
2k 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
2 votes
1 answer
3k 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
916 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,189
1 vote
1 answer
970 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
2k 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
564 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
251 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
948 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
  • 18.2k
2 votes
1 answer
5k 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
255 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
  • 887
1 vote
0 answers
244 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
  • 111
2 votes
0 answers
1k 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
2k 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
  • 197
1 vote
0 answers
1k 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
2k 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
  • 14.2k
0 votes
1 answer
1k 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
222 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,468
3 votes
1 answer
405 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
  • 133
1 vote
1 answer
303 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
954 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
601 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
858 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
2 votes
2 answers
2k 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
  • 35
2 votes
1 answer
1k 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.7k
1 vote
0 answers
181 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
3 votes
0 answers
1k 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
  • 131
2 votes
0 answers
203 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
146 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
964 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
331 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

1
2 3 4 5 6