sshfs is a FUSE filesystem for Linux which allows directories on remote machines accessible via SSH to be mounted locally.
Questions tagged [sshfs]
147 questions
83
votes
4 answers
How to keep rsync from chown'ing transferred files?
I have an sshfs connection setup with a remote filesystem on a Linux server. I'm doing an rsync from my local server to the ftpfs-filesystem. Because of the nature of this setup, I can't chown anything on the sshfs filesystem.
When I do the rsync,…
Jake Wilson
- 8,494
- 29
- 94
- 121
46
votes
6 answers
How do I sudo over sshfs?
On my local host alpha I have a directory foo that is mapped via sshfs to host bravo as follows:
$ sshfs charlie@bravo:/home/charlie ~/foo
However, on host bravo there is another user, delta, that I want to sudo /bin/su as, so that I can do work in…
dirtside
- 1,481
- 4
- 17
- 22
37
votes
1 answer
Why doesn't SSHFS let me look into a mounted directory?
I use SSHFS to mount a directory on a remote server. There is a user xxx on client and server. UID and GID are identical on both boxes.
I use
sshfs -o kernel_cache -o auto_cache -o reconnect -o compression=no \
-o cache_timeout=600 -o…
Jan Deinhard
- 2,363
- 5
- 26
- 33
22
votes
1 answer
Mount a SSHFS volume into a Docker instance
I use SSHFS to mount a remote filesystem on my host and I want to be able to access it from inside a Docker container.
I mount the remote filesystem
sshfs -o idmap=user,uid=$(id -u),gid=$(id -g) user@remote:directory /path/to/sshfs
And, using…
Ralph
- 323
- 1
- 2
- 5
21
votes
10 answers
keep ssh connection alive and persistant while switching network interface connections
Scenario:
At my desk with laptop plugged in to ethernet and connected to remote server over SSH
Want to move to other side of office with laptop and change to WiFi without interrupting SSH connection
I've tried: connecting to WiFi first then…
Sean
- 373
- 1
- 3
- 7
15
votes
1 answer
How to list current sshfs mounts to server?
If someone logs into a server via ssh for shell usage, a quick use of last|w|who can be used to show the logged in user. If someone mounts a directory on the same server via sshfs from another computer last|w|who do not show a connection. Is there a…
M. Smith
- 153
- 1
- 1
- 4
15
votes
2 answers
Improving SSHFS performance when reflecting changes in host directory
I have an SSHFS mount from a Ubuntu Server VM guest, mounting a host Mac OS X directory. Changes made directly in the Mac OS X host directory take approx 5 - 10 seconds to reflect in the Ubuntu Server VM guest mount.
I am using the following…
chattsm
- 329
- 2
- 3
- 7
12
votes
5 answers
How do I mount sshfs at boot?
Using a NAS box as 24/7 file server, I'd like to use sshfs to connect to it from an Ubuntu 9.04 desktop. Currently, I have this line in the desktop's fstab:
sshfs#jldugger@storage:/mnt/HD_a2/ /mnt/storage fuse …
jldugger
- 14,122
- 19
- 73
- 129
11
votes
2 answers
What is the potential for a FUSE mount to destabilize a Linux server?
I'm a sysadmin for a multi-user server, where students in our department have shell accounts. One of our users has requested that we install sshfs on it. I'm debating whether it would be wise to install sshfs as suggested.
My main concern is…
200_success
- 4,701
- 1
- 24
- 42
9
votes
3 answers
How to make sshfs + VPN + git a tolerable working environment?
Currently the code base for the project I am working on is remotely on a company server. and it has to stay like that. also the remote git repository cannot be made public.
My current setup is:
Connect to the VPN
run sshfs to mount a copy of the…
Asgaroth
- 199
- 1
- 5
8
votes
3 answers
SSHFS over a jumphost
I have 3 computers. A, B, and C.
A is the one I'm on now. B is a jumphost that I can SSH through from A to get to computer C using ssh -t B_host ssh C_host.
What I'd like to do is mount C's file system to A through an SSHFS command but a brief look…
m4p85r
- 305
- 2
- 7
7
votes
4 answers
Is sshfs+encfs stable?
What is your experience in using ENCFS with SSHFS for remote backup ?
My main wondering is about long term stability.
dugres
- 241
- 3
- 8
7
votes
2 answers
Denied root access to user mounted FUSE file system
Let me start with giving you the details of my setup:
I am running Fedora 13 on an x86_64 arch. I have mounted a remote directory using sshfs:
jim@localsite $ sshfs jim@remotesite:/home/jim /home/jim/remotemount
Now if su to root and try to read…
Mansour
- 499
- 2
- 7
- 14
7
votes
4 answers
Sshfs is not working
When I run
sshpass -p 'mypass' sshfs 'root'@'68.19.40.16':/ '/dir' -o StrictHostKeyChecking=no,debug
It successfully mounts but it runs on foreground.
When I run without 'debug' parameter, it doesn't mount at all.
Server is ubuntu 8.04
Any ideas…
Devrim
- 1,197
- 4
- 16
- 29
6
votes
2 answers
Prevent writing to unmounted sshfs mount point
Assuming I have a folder /mnt/mountpoint that I use as a mountpoint for some sshfs-mounted directory:
sshfs user@host /mnt/mountpoint
Now, I want to prevent applications to write to /mnt/mountpoint while it is unmounted. Questions I found here…
Slizzered
- 774
- 5
- 16