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.
256 questions
4 votes
1 answer
179 views
sshfs to a host requiring OTP pw
In my environment I have: a Jenkins build server that I can ssh into using private/public keys. I can use sshfs to mount its file system on my local pc (running WSL on Windows 11, ugh but I can't ...
0 votes
0 answers
38 views
Running sshfs through ssh proxy and passing in passwords: why does this work?
I have a remote machine that I must access through a proxy, and so I have set up the remote's ssh alias like so: Host server HostName server-ip User my-username ProxyCommand ssh my-proxy-...
0 votes
0 answers
72 views
Need option to prevent SSHFS from changing server's file modification date on download(!)
SSHFS changes modification date (not access date) of server files on download(!). Is there an option/setting to prevent that? The problems this causes include: after the next download, you can't sort ...
0 votes
0 answers
607 views
Accessing Docker Unix Socket from a Podman Container on a Remote Server (SSH)
I'm trying to access a Docker Unix socket on a remote server from within a Podman container (offen/docker-volume-backup). I've (root-)mounted the entire root filesystem of the remote server using ...
7 votes
1 answer
2k views
Did I accidentally delete files? How can I recover them?
I’m a new PhD student and I’m dealing with a serious issue. I tried to map a directory from Server A (/home/lab/Desktop) to Server B (/home/usr/labDesktop) because Server B has better computing power. ...
0 votes
0 answers
74 views
sshfs receives `mount[5889]: read: Connection reset by peer` when ran from systemd but works manually
I can't figure how to enable more verbose logging to a systemd .mount file, but here we go my file is mnt-kreijstal.mount and has: # file is `/etc/systemd/system/mnt-kreijstal.mount` [Unit] ...
1 vote
1 answer
118 views
No ability to delete files on sftp mounted by sshfs
I mounted sftp dir via sshfs like: cat <sensitive_data> | sshfs -o password_stdin,allow_other,default_permissions,uid=0,gid=0 $USER@$HOSTNAME: $MOUNT_DIR -oauto_cache,reconnect And the problem ...
0 votes
0 answers
53 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 ...
1 vote
1 answer
825 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 ...
0 votes
1 answer
310 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....
1 vote
1 answer
158 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. ...
1 vote
1 answer
326 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 ...
1 vote
1 answer
448 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 ...
0 votes
0 answers
120 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 ...
2 votes
0 answers
197 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 ...