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.
254 questions
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
178
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 ...
0
votes
0
answers
44
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
664
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 ...
1
vote
1
answer
53
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 ...
71
votes
20
answers
157k
views
Connection reset by peer using sshfs
I am using a fuse/sshfs mount which worked fine so far. Now I had to reinstall the server system and suddenly getting the classic read: Connection reset by peer error. I am using public key ...
114
votes
5
answers
129k
views
How to specify key in SSHFS?
I've got a question that I've not been able to find an answer for. I have two computers, both of which run Ubuntu Linux 12.04. I have set up my first computer ("home") to be able to SSH into my second ...
0
votes
0
answers
41
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
3
answers
1k
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 ...
29
votes
2
answers
55k
views
Transport endpoint is not connected in SSHFS
After reinstalling the server I can not mount it:
sshfs [email protected]:/var /remote_mount
fuse: bad mount point `/remote_mount': Transport endpoint is not connected
When I SSH, I get an error:
# ...
31
votes
7
answers
80k
views
Username and password in command line with sshfs
I'm creating a small backup script using sshfs:
sshfs backup_user@target_ip:/home /mnt/backup
Is there a way to include the password in this command?
Or is there another file transfer solution where ...
0
votes
0
answers
34
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 ...
0
votes
1
answer
209
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....
81
votes
8
answers
69k
views
What is a better way to deal with server disconnects of sshfs mounts?
I have several directories mounted through sshfs. I sometimes get disconnects from the server (not configurable by me). I usually mount the directories like this
sshfs [email protected]:/home/...
1
vote
1
answer
120
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. ...