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.

learn more… | top users | synonyms

33
votes
4answers
12k 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 ...
17
votes
1answer
13k views

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 user@example.com:/home/user/my-projects ~/mount/my-projects I can ...
14
votes
2answers
12k views

SSHFS specify key

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 ...
11
votes
1answer
665 views

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 ...
9
votes
2answers
11k views

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. ...
8
votes
1answer
629 views

Using ACLs over read only/remote filesystem

I would like to define local ACLs to be used over a remotely mounted filesystem. The filesystem is mounted via autofs and sshfs FUSE. The idea is that we could setup a jailed user on a jump server ...
7
votes
2answers
2k views

autofs with sshfs not working anymore [closed]

I just upgraded from Ubuntu 12.04 to 12.10. Before that I backed up my autofs config which worked fine. I appended the line from my old /etc/auto.master to the new one: +dir:/etc/auto.master.d ...
7
votes
1answer
3k views

how to set the sftp -s subsystem option in a configuration file

The sftp command supports a subsystem option (-s) which allows the remote user to select the remote sftp-server executable, and optionally upgrade to sudo in the process like so; sftp -s ...
6
votes
1answer
4k views

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 ...
6
votes
1answer
338 views

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
5answers
13k views

sshfs always asking for password in fstab?

I'm trying to enter an sshfs mount in /etc/fstab with the following line: sshfs#oli@192.168.0.2:/media/usb0 /media/ExtHD fuse defaults,nonempty,allow_other 0 0 So that this volume is mounted at ...
5
votes
3answers
2k views

As what user is an sshfs mounted folder being accessed?

I'm trying to do a network backup of a drive. There are two machines in this process. PC1: Distant machine with 2 hards sda and sdb sdb is the drive which needs backing up two users exist, root and ...
5
votes
2answers
2k views

SSHFS seems to be working, but Sublime + SSHFS doesn't?

I use the command, to mount my remote filesystem using SSHFS: $ sshfs -o uid=1000 -o gid=1000 root@10.0.1.198:/ "/home/chendy/my_mount" Everything seems to be happy, unless I try and open and save ...
5
votes
1answer
786 views

How do I use inotify or named pipes over SSHFS?

Thanks sshfs magic, I can mount my home dir from a remote server with sshfs user@server:/home/user ~/remote Optimistically, I thought I'd set a local inotify-hook on ~/remote/logFile (in the sshfs ...
4
votes
1answer
35 views

How can I get information about remote directories mounted through sshfs?

If I mount a directory from a remote server on my local machine using sshfs, how can I find out such details as: Whether any such mount is currently mounted; The user who mounted it; The remote and ...
4
votes
2answers
154 views

ssh to a specific machine within a network [duplicate]

I'm frequently transferring files and operating programs via ssh, and often from home. The machine I usually work on is a desktop at work that I cannot ssh to directly unless I'm already connected to ...
4
votes
1answer
1k views

UID/GID with sshfs of Linux FUSE

mkdir ~/mnt/2letter echo PASSWORD | sshfs -o password_stdin www-data@localhost:/var/www/sites/2letter ~/mnt/2letter -o sshfs_sync,cache=no,password_stdin After this: $ ls -ld ~/mnt/2letter/ ...
4
votes
2answers
473 views

ls behaves differently under strace

I don't know how to debug this situation: 1) I try to execute: ls /home/user 2) ls blocks and does not print anything. I assume it is because /home/user contains /home/user/sshfs_files, which is ...
4
votes
1answer
479 views

Permissions issues with mounting remote server into a specific folder

I'm doing the following to mount a remote server to a specific path on my server: sshfs user@remoteserver.com:/backup/folder/ /home/myuser/server-backups/ However when I mount the server the folder ...
4
votes
1answer
377 views

How do I share a mounted sftp drive?

My friend has a public server that he's given me read access to with SFTP. I've successully mounted it in Mint 17 with the command sshfs user-name@file-server:/location/I/want /mount/point/I/want -o ...
4
votes
1answer
3k 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 ...
3
votes
2answers
2k views

creating a device image for a network location

I have a dedicated ubuntu server with hetzner.de. hetzner also provides a seperate backup space accessible via samba/ftp/sftp/scp. In their support document about backups, the following line is ...
3
votes
1answer
1k views

sshfs will not use ~/.ssh/config (on Linux Mint 15)

Local: Linux Mint 15 - Olivia /proc/version: Linux version 3.8.0-19-generic (buildd@allspice) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) ssh -V: OpenSSH_6.1p1 Debian-4, OpenSSL ...
3
votes
2answers
677 views

Can I make a symlink point to different locations on different machines?

Before you say "no", a workaround would also be fine. Here is the situation: I have two machines local and compile, both including the same ~ over nfs from a third machine files. I would like to have ...
3
votes
2answers
1k views

Groups ssh user is apart of don't apply on SSHFS

I am connecting to a remote server over SSH but am running into a permissions issue. My remote account is thelq and primarily part of the group thelq. I'm also part of the generic group users. ...
3
votes
1answer
174 views

sshfs LocalForward without config file

I'm trying to add portforwarding to my sshfs-mount-scripts: sshfs tim@devserver1:/ /home/tim/mnt/devserver1/ -o SSHOPT=LocalForward 127.0.0.5:3306 127.0.0.1:3306 So far I've failed using the ...
3
votes
2answers
120 views

sshfs over mosh tunnel

I am using sshfs over ssh tunnel. The reason for this is because I do not have direct access to machine from which I want to mount file system. This command establishes me tunnel: ssh -o ...
3
votes
3answers
1k views

Storing the private key password for auto-mounting SSHFS?

I connect to a server via sshfs using private/public key pairs. My local key needs a passphrase to use. NOTE: The public key has already been copied to the remote server. I'm looking for a method to ...
3
votes
1answer
2k views

sshfs - can't unmount the point

I mounted a folder on a remote machine using sshfs, but didn't specify -o allow_other flag thus can't access the mounted directory. When I try to mount over with -o allow_other option sshfs gives me ...
3
votes
1answer
461 views

Are remote LUKS volumes mounted locally with sshfs made visible to remote users?

I created an encrypted volume with LUKS and uploaded it to a remote directory on an untrusted host. I can mount it locally though. I first mount the remote directory locally with sshfs and then open ...
3
votes
1answer
35 views

Do a command in all open shells

I use sshfs to do useful things on my dev box. I love it. But, I usually forget to fusermount -u before I close my lid (triggering hibernate). Then, when I come back, sshfs is frozen and I have to ...
3
votes
1answer
20 views

Monitor folders mounted via SSHFS

I want to monitor changes made a folder that is mounted via SSHFS. I have tried iwatch but it does not notify when a new file is created, below is the syntax I am using with iwatch: iwatch -e create ...
3
votes
1answer
313 views

chroot into a sshfs folder

I am trying to chroot into a sshfs-mounted directory: mkdir remoteroot sshfs remote:/ remoteroot/ sudo chroot remoteroot/ but I get chroot: cannot change root directory to remoteroot/: Permission ...
3
votes
1answer
192 views

Meaning of fsync() in sshfs+LUKS setup

Background: I'm investigating methods for encrypted storage on untrusted machines. My current setup uses sshfs to access a LUKS-encrypted image on the remote machine, which is decrypted locally and ...
3
votes
1answer
291 views

Remount an SSHFS mount without umounting it

What is the equivalent to mount -o remount,ro in an sshfs mount? The only way I know is to do fusermount -u and then mount it again with sshfs -o ro.
3
votes
1answer
340 views

Looking for information on the FISH protocol

What I have found about fish:// (the kio protocol) is old and often incomplete. Is there anything that's new? Like a primer? Or is this something to put on the KDE todo list?
3
votes
0answers
579 views

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 ...
2
votes
3answers
399 views

Help me to replace sshfs with ssh?

I love to do just this: $ sshfs mountPoint myServer $ cp thisFile mountPoint I am now using LiveCD and I do not have sshfs utility available and I need run $ sudo dd /dev/sdb2 > mountPoint, how ...
2
votes
6answers
1k views

Unable to do paswordless ssh even after following standard procedure

I have two systems named Interface(10.1.1.87) and Client-Interface(10.1.1.91). I want to automatically mount an sshfs share from Client-Interface on Interface on boot. I am using the command: sshfs ...
2
votes
1answer
176 views

Lazy mount of remote filesystem (with sshfs)

I have a remote computer, and I mount its filesystem with sshfs to my local folder ~/user@host, like that: sshfs user@host: ~/user@host Works nice, but I want to implement "lazy" mount: i.e. I ...
2
votes
1answer
978 views

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 ...
2
votes
1answer
2k views

Problem with pam_mount and sshfs

I'm trying to configure automounting of users home directories using pam_mount and sshfs (users are LDAP users on remote machine). I configured pam_mount: <?xml version="1.0" encoding="utf-8" ...
2
votes
1answer
54 views

Detect remote sshfs mounts on local machine

I would like to get back the question of this post. When a user in a remote client mounts a directory from a local server on his filesystem through sshfs, he is not visible in the server through who ...
2
votes
1answer
401 views

Directory sync across SSHFS involving symlinks

I have 2 Ubuntu Linux boxes with similar directory structures, LX02 and LX04. When I ssh from a terminal on LX02 to LX04 and go to my main scripting directory, /root/sbin, I see a different set of ...
2
votes
3answers
3k views

How to automatically mount remote directories on login / startup

Everytime I boot, I use sshfs to mount remote directories. I am thinking to put these short commands in my .bashrc, but that does not seem to be The Right Way™. What is the proper way to run sshfs on ...
2
votes
1answer
194 views

User specific fstab for fusermount

I wonder if there is something like "user specific /etc/fstab" for fusermount? ~/.fstab, ~/.config/fstab, something the like, which would work in cooperation with FUSE. I used sshfs foo.bar: ...
2
votes
0answers
229 views

Automating sshfs not working

I want to mount a remote directory and I want to automate this. So I write below script which not working properly. #!/usr/bin/expect -f spawn sshfs vedams@192.168.5.109:/home/user /mnt/remote expect ...
2
votes
0answers
128 views

Can't mount remote file system with sshfs [duplicate]

Possible Duplicate: How to apply changes of newly added user groups without needing to reboot? I have posted this question in linux mint users forum about some hours ago. I'm trying to ...
2
votes
1answer
26 views

sshfs remount hangs

On Fedora 21 current patches, in a local LAN environment, I'm mounting 2 filesystems with sshfs. The remote server is on a reliable LAN network, the ssh keys are correctly setup for passwordless ...
1
vote
4answers
1k views

How to install sshfs on Linux Mint?

I am trying to install sshfs on Linux Mint to mount remote folders over SSH. I've Googled up and down on how to install sshfs (as the command is not available to me) and I'm beating my head against ...