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.

252 questions
20
votes
1 answer

what does `sshfs -oworkaround=rename` do?

For an operating systems class I'm taking, I've needed to run Freebsd5.4. Since I didn't want to wrestle with trying to build git on a version of bsd released before git was released, I thought it would be neat to use git from Arch over sshfs. At…
math4tots
  • 2,685
6
votes
1 answer

Is mkdir atomic over sshfs?

I am using mkdir as a locking mechanism, and to my knowledge mkdir is atomic, but it is not atomic over nfs. So my question is simple, is mkdir atomic over sshfs?
5
votes
1 answer

allow all users to access sshfs mounts

What is the best-practices way to allow all local users to access sshfs mounts when the mount is established by an arbitrary non-root user? (Access will be according to file permissions, of course.) Provided that the allow_other mount option is…
MountainX
  • 17,948
4
votes
1 answer

What is/How to create a UID/GID File

I've started creating dynamic sshfs mounts to other devices on my local network, but the equivalent users which are the same, have different UIDs/GIDs. From what I've found whilst searching for a solution I need to add -o idmap=file -o…
3
votes
1 answer

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 u0_a402@192.168.43.189:/storage ~/sshfs-mount2 -o IdentityFile=~/.ssh/termux-rsa sshfs: invalid argument `u0_a402@192.168.43.189:/storage' Try 2:…
3
votes
0 answers

Abusing sshfs to mount "many" remote folders

Assuming that I build a management interface which lets me easily mount folders from remote machines on a workstation, is there a problem with having, let's say, a half a dozen of sshfs mounts with each remote machine, and this with let's say 4…
Daniel F
  • 867
3
votes
1 answer

SSHFS in fstab requests password even though user connects fine using keyfile

I have added a following line in fstab: sshfs#root@1.2.3.4:/root/dir /home/dir fuse.sshfs defaults,_netdev 0 0 When I try to mount it with mount -a, I get a password request, even though I've added id_rsa.pub of root to authorized_keys of the…
Fluffy
  • 2,077
2
votes
1 answer

How to exclude folders in sshfs mounting?

Is it possible to mount a folder with --no-recursive option and --folder-exclude, maxdepth options?
Akhil
  • 1,290
1
vote
0 answers

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 more, so I killed it because my patience didn't allow…
1
vote
0 answers

sshfs - incorrect, old directory structure shown in remote volume, can't access data

I sshfs'd into a remote server with standard syntax: sshfs ubuntu@server.somewhere.com:/home/ubuntu/ ./myfolder -o IdentityFile=~/.ssh/my-private-key.pem -o allow_other Everything worked fine. The file structure there was /all/data/workdata Then,…
1
vote
2 answers

sshfs command does not return

I'm trying to mount the home directory of the login node of the batch system at my office on my local machine using sshfs. However, when I run export LOGLEVEL=DEBUG3 sshfs remotehostname:/user/myname $HOME/mounted/loginnodehome -o sshfs_debug I…
carsten
  • 355
0
votes
1 answer

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.: Ubuntu 20.04 desktops? Tried with…
jim7475
  • 31
0
votes
1 answer

Problem with automount via sshfs

I have this mount point configured in /etc/stab sshfs#tomcat8@10.1.0.73:/opt/cache /opt/cache fuse defaults,allow_other,nonempty,delay_connect 0 0 But seems it's not working as desired, as mount gets disconnect every now and then. Any ideas on…