Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [sshfs]

SSHFS is a tool that uses SSH to enable mounting of a remote filesystem on a local machine.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

SSHFS perms with Qemu/Libvirtd

So, what I'm doing may seem stupid, but.. I have a NAS, of which I'm SSHFSing onto my main user, "User" (1000:1000)'s /home/user/NAS. From there, I'm trying to run Virt-Manager as sudo, and ...
Novum Gain's user avatar
0 votes
0 answers
110 views

sshfs mount causing system to be very slow when remote is down

What is it about using sshfs to mount a remote directory that would cause the following behavior and how do I avoid it? I have multiple Linux systems and have used sshfs to mount a connection from one ...
AdvApp's user avatar
  • 193
0 votes
1 answer
94 views

SSHFS over multiple connections through a gateway

I have to mount a directory from a machine which can only be accessed through an SSH connection within another SSH gateway that I have to connect first. I want to use SSHFS for mounting, is it ...
kiwo's user avatar
  • 11
1 vote
0 answers
90 views

remote host has disconnected error with sshfs as cron job on openbsd

I am trying to automount a directory with sshfs using crontab. the sshfs command: /usr/local/bin/sshfs -o IdentityFile=/home/user/.ssh/id_ed25519.pub,idmap=user,allow_other,uid=1000,gid=1000 user@...
pitpux's user avatar
  • 11
2 votes
0 answers
465 views

SSHFS-Win - No write permission on Windows system

I mounted a remote folder locally using SSHFS-Win. I tried both net use H: \\sshfs.r\remoteuser@remoteserver and sshfs remoteuser@remoteserver:/ H: In both cases I can open the H: drive just fine ...
Raketenolli's user avatar
0 votes
1 answer
136 views

How to copy files from Window to a network (Linux) drive without root of that drive

I need to copy files from a Windows machine to a remote Linux host's /opt/ dir, however, I don't have root access to that Linux host so directly copying files to /opt/ is not possible. What I have now ...
Henry's user avatar
  • 325
0 votes
0 answers
96 views

Cannot write to SSHFS mount in user namespace created with "unshare -c -m --keep-caps bash"

Background Ultimately I am trying to mount a remote filesystem in a kubernetes pod on a self-hosted cluster that uses Docker as a container runtime. The process running in the pod determines the mount ...
Sebastian's user avatar
0 votes
1 answer
135 views

Mount remote directory of server with no direct route but having an intermediate server that only receives ssh connections

The setup I'm facing is this one: In server A I'd like to mount a directory (let's call it SHARED) from server B. There is no route and no way to add any from A to B or from B to A. The inverse, to ...
Luis's user avatar
  • 730
0 votes
1 answer
77 views

On which computer are mounted files executed?

This could be a few questions, but I feel it's a similar issue. On which computer are mounted executable files executed? And does this change with like sshfs, nfs, or ln? Like if you have a storage ...
user avatar
0 votes
0 answers
15 views

SFTP Server force two different umasks on different directories [duplicate]

I Have a File Server that hosts SFTP for linux clients and SMB for windows clients. There are two directories under /srv/fs. home and public. home needs to have a 0700 umask and public needs to have a ...
Maximal_98's user avatar
1 vote
0 answers
112 views

SSHFS freezes in bash but in tcsh

I run SSHFS on a cluster which I am not root on. Therefore, I use SSHFS 2.4 (as it does not require installing fuse which I cannot as I'm not root, also I am able to run the executable out of box ...
user1818563's user avatar
1 vote
1 answer
231 views

sshfs: how to mount a drive on a SSH double hop with different authentication

I have the following which works to get me to the end server: ssh -o ProxyCommand="ssh -W %h:%p ServerA" hackJJ@localhost-p 2222 The basic, very basic layout: Me -> ServerA -> ServerB ...
HackJJ's user avatar
  • 13
1 vote
1 answer
426 views

not able to mount filesystem (sshfs) using crontab

I have sh script file which works properly when running from command line using - ./start.sh which starts a tomcat server and mounts a drive with sshfs But when i do crontab -e @reboot /home/start....
Pradyut Bhattacharya's user avatar
0 votes
0 answers
1k views

Windows can't find SSHFS

When mapping a network drive on Windows 10, after installing SSHFS-Win and WinFsp, I get the error message "Windows can't find ssfhs". Any idea why this is happening? Here is the steps that ...
sam wolfe's user avatar
  • 101
1 vote
0 answers
715 views

SSHFS on Windows 10 not able to change permissions on mapped drive to Ubuntu target

I have SSHFS installed in Windows 10 and am having a problem that is driving me crazy trying to figure out what is causing it. I am using the latest packages (just downloaded and installed 2 days ago) ...
AllenM's user avatar
  • 11
0 votes
1 answer
199 views

SSHFS user name containing colon syntax

I can connect to my server using ssh : ssh -p 22 root@app_name:userName@host But sshfs thinks app_name is my host : sshfs -odebug,sshfs_debug,loglevel=debug -o allow_other -p 22 root@app_name:...
John's user avatar
  • 11
5 votes
1 answer
6k views

cd in a Makefile doesn't seems to be taken into account after sshfs

I have a Makefile with a sshfs command followed with a cd command: mr: # mount-remote sshfs -p 5022 -o nonempty [email protected]:mnt /home/julien/myworking_path cd ./...
JKHA's user avatar
  • 181
1 vote
1 answer
4k views

sshfs permenant mounting without password prompt

I have two Linux machines Linux 1 Linux 2 I mount a directory on Linux2 to Linux one as below: sudo sshfs -o allow_other [email protected]:/usr/XXXXX/bin /opt/Project/MountHere/ This works, but ...
user3122648's user avatar
0 votes
1 answer
267 views

Make write to sshfs atomic

I'm using sshfs to run some process on one mashine and store the result on another one. The command I'm using to mount is sshfs user@host:/rempte/path /local/path. The scrip I'm running creates a file ...
Falk's user avatar
  • 343
-1 votes
1 answer
1k views

Windows 10 SSHFS Suddenly Stopped Working - System Error 67

I've been successfully using SSHFS on my Windows 10 computer to mount a VirtualBox Ubuntu drive for over a year. Then, suddenly today, I started getting System error 67. I've used the same exact ...
John's user avatar
  • 1
0 votes
1 answer
858 views

Locally edit remote directories/files via ssh tunneling

As the title suggests I want to edit on my local machine (Machine A) files that are in a server (Machine C) that is accessible after sshing to another server (Machine B) (two hops in total). I'm using ...
vic's user avatar
  • 111
1 vote
1 answer
449 views

Why do sshfs and fuse create thousands of file descriptors (unbounded growth) for a Java process?

I'm trying to understand why I see thousands and thousands of new file descriptors such as the following in /proc/PID/fd directory of a java process: $ sudo ls -lt /proc/585/fd | head total 0 lr-x-----...
Emre Sevinç's user avatar
1 vote
0 answers
1k views

rsync --append or --append-verify flags causing transfer to error on resume

Trying to do a transfer with rsync using rsync -rtlv --no-i-r --no-perms --partial --inplace --append-verify /srv/raid /mnt/backup. I use it in a script to transfer the contents of a server's RAID ...
Pecacheu's user avatar
  • 111
0 votes
0 answers
277 views

What happens to sshfs mounted folders in `/tmp`

As the title suggests, I was wondering what happens to via sshfs mounted folders if they are mapped to a subfolder of /tmp, e.g., /tmp/data. Are they simply unmounted or is the data removed ...
Roofkiller's user avatar
1 vote
1 answer
2k views

passing bash variables to expect script or scripting expect from inside bash

This script is intended to mount the contents of my server at home as a read/writeable drive in mac os. Unfortunately due to the fact that my house has a dynamic public ip address, the ip address of ...
Christian Maxwell's user avatar
0 votes
1 answer
567 views

Sharing a network drive over WAN with MacOS and Linux

I would like to share a network drive in a way that can be accessed from both MacOS and Linux, over the internet. I have a home Linux server, as well as one on AWS. The MacOS computer will be another ...
dwrz's user avatar
  • 101
1 vote
0 answers
207 views

How I can use STFP share with Vifm on WINDOWS 10?

I want to mount SFTP share to my computer and use it with Vifm. I tried with sshfs-win, but it is not stable.
T0ba's user avatar
  • 11
0 votes
0 answers
2k views

Get error logs from sshfs

I connect a network drive using sshfs on my ubuntu computer. Over time the drive disconnects. How can I find out, why this happens? I.e., how can I get a log from sshfs. I use Ubuntu and the following ...
jvh's user avatar
  • 101
2 votes
0 answers
798 views

Cannot sshfs to server over proxycommand on Windows

I'm trying to connect through sshfs-win to mount a drive over a jumphost. I can normally connect through ssh but when invoked over sshfs-win it fails. Also, I can normally mount the jumphost, but not ...
ditoslav's user avatar
  • 133
1 vote
0 answers
243 views

Offline read cache of sshfs

I have a ~1TB music library on a remote server that I would like to setup a local ~100GB cache for such that I can transparently read cached files, even offline. What is the easiest way to do this?
misty123's user avatar
0 votes
1 answer
741 views

Trying to mount remote directory using sshfs: filesystem unresponsive

I'm trying to mount a remote directory using sshfs. I've got my .ssh/config set up so that I can ssh into my user on the remote machine like so ssh wdev The remote directory in question (let's ...
pipsqueaker117's user avatar
1 vote
0 answers
640 views

Error Mounting SFTP Folder using SSHFS on Ubuntu: fuse: unknown option `KexAlgorithms=diffie-hellman-group14-sha1'

On a Ubuntu 20.04 system, I have successfully mounted a SFTP folder by running sshfs -o KexAlgorithms=diffie-hellman-group14-sha1 [email protected]:/ ~/foo However, on a Ubuntu 16.04 system, when I run ...
Athena Wisdom's user avatar
0 votes
0 answers
509 views

In Windows, Meld can't save to directories mounted via SSHFS-Win. How to enable that?

I have mounted the root directory of one of my Linux boxes to a drive letter in Windows (in this case, P:), using Sshfs-Win. I have imported the directory using SSH root credentials, and therefore, in ...
Binarus's user avatar
  • 1,815
1 vote
0 answers
2k views

Speeding up an incredibly slow sshfs going through login ssh tunnel

Sorry if this is answered somewhere and I have missed it. I lack some understanding in how these things work in order to safely choose the best solution. I, like many others, am working from home. I ...
Paidoo's user avatar
  • 111
1 vote
0 answers
624 views

Map network drive in Win10 using ssh to an intermediate remote machine

In powershell I login via ssh machineA (with password) and then ssh machineB. I am using SSHFS-Win to mount remote machineA folders (which works fine). \\sshfs\[email protected]\..\..\scratch\user Now ...
Astro's user avatar
  • 111
2 votes
1 answer
582 views

Use SSHFS with shared control socket

I start an SSH session with a shared control socket as follows: ssh -M -S ssh_socket -fnNTC ssh://user@host:9022 I have no problem executing commands using this socket; for example: ssh -S ssh_socket ...
Boann's user avatar
  • 1,166
1 vote
1 answer
2k views

how to prevent input/output errors when ffmpeg to sshfs mounted fs and connection is lost

I'm recording video across the network using ffmpeg to a filesystem mounted by sshfs. I'm consistently having the issue that if my machine goes to sleep, the ssh connection drops and has to reconnect ...
Michael's user avatar
  • 2,734
1 vote
1 answer
2k views

sshfs-win adds executable permission for all newly created files

I mounted remote ssh file system to my Windows using sshfs-win. But when I create files in Windows they are marked as executable in Linux. $ ls -l total 4 -rwxr-xr-x 1 user user 14 Mar 31 20:42 file....
anton_rh's user avatar
  • 406
-1 votes
2 answers
890 views

Fuse + sshfs and OSX - cannot delete files

Although I can create and rename files, for some reason I cannot delete files. I am mounting a UBUNTU 18 directory to OSX Catalina. I have tried all sorts of combinations and used a different user ...
spreaderman's user avatar
1 vote
1 answer
5k views

Permission denied when directly copying from SSHFS to SD

I have a remote hard disk mounted with sshfs on a local mountpoint. Furthermore, I have mounted an SD card to the same computer. When I try to copy from the remote disk to the SD card the permission ...
Alex's user avatar
  • 306
1 vote
1 answer
691 views

How to mount a remote directory using sshfs when the server keeps forwarding me?

maybe this question was asked before but here I go: I want to mount the user directory of my account on the server of the university I go to. Usually when I log in through ssh I just type in: ssh ...
Undergrad19's user avatar
0 votes
0 answers
88 views

How to use sshfs to map linux server requiring double authentication?

I have problems using sshfs to map a linux server that requires double authentication. The server is accessible via ssh in two steps: 1) ssh access with user and passwd 2) sudo user2 and passwd. ...
Sir Jo Black's user avatar
2 votes
1 answer
2k views

Does SSHFS store files on the local machine when loading files?

My company wants to use SSHFS to mount a directory from a secure remote server. An application on the local (client) machine needs to access files to read and edit their content (read/write). However, ...
Nick Ruiz's user avatar
  • 123
1 vote
2 answers
200 views

any way to emulate permissions with sshfs?

I have a directory structure where lots of data are stored and permissions are important. I also have a rsync.net account. I am investigating the possibility to use the rsync.net storage for the ...
user157726's user avatar
0 votes
1 answer
1k views

Passwordless sshfs mount over reverse-ssh

I'm trying to mount a host directory onto a remote machine using reverse-ssh and sshfs For the most part, running the following command on the host works ssh -t -L 0.0.0.0:10000:localhost:10000 -i /...
Ani's user avatar
  • 113
1 vote
1 answer
678 views

fusermount prepends /home to path when resource is busy

Problem: I created a bash script for SSHFS mount/unmount using: 1| dir=$(mktemp -d) 2| sshfs user@server $dir 3| cd $dir 4| bash 5| fusermount -u $dir 6| rmdir $dir Once these lines are ...
Majal's user avatar
  • 957
1 vote
1 answer
2k views

Is sshfs over the internet safe?

I'd like to try sshfs for accessing my Nextcloud files on the command-line. I've used dav2fs but it's a bit slow to connect; for example, executing the command ls on a directory mounted with dav2fs ...
arst's user avatar
  • 13
0 votes
0 answers
53 views

git makes my sshfs busy

I have sshfs running on mac and I want to unmount it, however it says that resource is busy. sudo lsof | grep /path/to/sshfs shows two git entries: one CWD entry in the root of sshfs (there is a git ...
Krigga's user avatar
  • 1
1 vote
1 answer
109 views

How to make movemail work on SSHFS filesystems?

I would like to avoid setting up an IMAP server and instead use mailutils' movemail in combination with SSHFS to move over some mails from an external host to my local machine. Unfortunately it fails: ...
dirdi's user avatar
  • 3,265
3 votes
0 answers
1k views

SSHFS keeps asking for a password despite ssh key present

I have a valid SSH key on my client, and my public key is uploaded on the remote server. I can login with the SSH key without being prompted for password using SSH, but when I try doing so with SSHFS ...
Nikolay Shindarov's user avatar

1
2 3 4 5