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.
Questions tagged [sshfs]
247 questions
100
votes
4 answers
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 computer ("remote") using public/private RSA key…
J L
- 1,133
- 2
- 8
- 8
79
votes
6 answers
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/user /mnt/example
When a server disconnects, the…
Sebastian
- 8,677
- 4
- 39
- 49
78
votes
3 answers
sshfs mount, sudo gets permission denied
I am using sshfs to mount a folder with some python projects over ssh to my ~/ directory.
$ mkdir -p ~/mount/my-projects
$ sshfs [email protected]:/home/user/my-projects ~/mount/my-projects
I can perform most commands as could be expected:
$ ls…
Uyghur Lives Matter
- 1,656
- 3
- 22
- 31
67
votes
20 answers
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 authentication and copied my key to the newly installed…
André Stannek
- 1,258
- 2
- 10
- 17
49
votes
3 answers
How does _netdev mount option in /etc/fstab work?
I'd like to know what is the exact mechanism (implementation) used to defer mounting until after network interface is up when one uses _netdev option in /etc/fstab?
Does systemd alter this behavior?
Also, what does delay_connect option to sshfs…
Piotr Dobrogost
- 4,116
- 5
- 35
- 46
28
votes
8 answers
sshfs always asking for password in fstab?
I'm trying to enter an sshfs mount in /etc/fstab with the following line:
sshfs#[email protected]:/media/usb0 /media/ExtHD fuse defaults,nonempty,allow_other 0 0
So that this volume is mounted at boot. After booting up, nothing happens, but when…
semiserious
- 411
- 1
- 4
- 4
27
votes
7 answers
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 the login password can be included other than…
Zaza
- 544
- 2
- 6
- 15
26
votes
2 answers
Unable to use -o allow_other with sshfs (option enabled in fuse.conf)
I have the following on my /etc/fuse.conf file:
# Set the maximum number of FUSE mounts allowed to non-root users.
# The default is 1000.
# …
Amelio Vazquez-Reina
- 40,169
- 77
- 197
- 294
26
votes
5 answers
Mount with sshfs and write file permissions
I try to sshfs mount a remote dir, but the mounted files are not writable. I have run out of ideas or ways to debug this. Is there anything I should check on the remote server?
I am on an Xubuntu 14.04. I mount remote dir of a 14.04 Ubuntu.
local $…
vkats
- 611
- 1
- 7
- 11
25
votes
2 answers
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:
# ssh [email protected]
The authenticity of host…
clarkk
- 1,727
- 6
- 31
- 43
24
votes
2 answers
sshfs breaks symlinks from SFTP server
Does anyone know how to mount a remote SFTP path via SSHFS so that you can work with symlinks? When I do this, all the symlinks I create point to the wrong files (not the ones I linked to.) All the symlinks I am interested in are relative (not…
Malvineous
- 6,524
- 5
- 52
- 76
23
votes
2 answers
Do not halt the boot if an fstab mounting fails
I have this line in my fstab:
sshfs#ecarroll@o99:/opt/dealermade/ftp/inc /opt/dealermade/ftp/inc fuse defaults,idmap=user,users 0 0
For whatever reason it didn't work -- that's fine. How do I make it not stop the boot sequence. It prompted me to to…
Evan Carroll
- 28,578
- 45
- 164
- 290
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,665
- 8
- 32
- 42
16
votes
2 answers
how to map users and group with sshfs
As you can see below I'm able to map the user from kevcoder00 to kevcoder01 but the group gets mapped to marigold although that group does not exists on kevcoder01
l00py@kevcoder00:~$ sshfs -o idmap=user l00py@kevcoder01:/home/l00py…
kevcoder
- 445
- 1
- 4
- 12
15
votes
2 answers
Differences between rsync on remote and rsync local on mounted sshfs?
Is there any difference if I run rsync with remote host (ssh://) as source/destination or use local path to share mounted directory via sshfs?
Could there be differences be with regards to security or copying speed without any switches usage, just…
galq
- 168
- 1
- 1
- 7