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.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

SSHFS: Permission denied when opening directory from application even with “allow_other”

I'm trying to use sshfs to open a remote directory in the Spotify snap application on Linux Mint. sshfs -o allow_other user@example.com:/remote/dir /local/dir I've mounted my directory using the &...
38
votes
15answers
77k 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 ...
78
votes
4answers
72k views

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 ...
3
votes
1answer
109 views

git over sshfs (with idmap): unable to append to '.git/logs/HEAD': Permission denied

Problem: I have a git repository mounted via sshfs and cannot commit changes with the following error message: fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Permission ...
0
votes
1answer
15 views

Keep sshfs connection when switching from wired to wireless network

On my laptop, I often mount the content of my NAS through sshfs, for ease of access. I usually do so with an ethernet cable plugged in, as it makes browsing the files more smooth than with wifi. But ...
3
votes
2answers
2k 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 login....
1
vote
1answer
38 views

How can I use a reverse tunnel with sshfs?

I have a local machine which connects via ssh to a remote machine using a middle machine and a reverse ssh tunnel from remote to middle: remote$ ssh -p <sshd port> -NTR <local port>:...
8
votes
1answer
227 views

'exec' option ignored in fstab for sshfs, need to specify to 'mount' on command-line?

I'm using sshfs in my fstab to mount a filesystem in Ubuntu 18.04.04 LTS: sshfs#dave@myservergoeshere.com:/remote-dir /mnt/local-mnt fuse rw,exec,user,allow_other,noauto,reconnect,...
0
votes
0answers
47 views

Help debugging sshfs error: “fusermount3: mount failed: Operation not permitted”

I have spent a considerable amount of time trying to debug where the issue lies but am unable to find a fix. I am working on a 32bit CentOS system and have installed sshfs and fuse via nix. When I ...
1
vote
1answer
12 views

Showing a symlink as-is over an sshfs mount

I have a filesystem on the host that contains symlinks (e.g. /foo/bar -> /baz/bar). I'm able to mount the filesystem over sshfs fine, but the symlink is resolved on the client, e.g. (they're ...
4
votes
1answer
2k 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 ...
1
vote
1answer
33 views

Autofs: /sshfs-dir

The solution to having a dynamic /nfs dir proved to be extremely simple: https://unix.stackexchange.com/a/584475/2972 I am wondering if I can do the same for sshfs. Let us assume that I can run: ...
0
votes
1answer
2k views

Mount sshfs as non-root hangs forever

I made a sshfs mount point in my fstab, using sshpass to send the password (I need to do this because key authentification is not available on the remote server). Mounting the folder logged as root ...
5
votes
2answers
1k views

When using expect: SSHFS Transport endpoint is not connected

When I run my SSHFS connection script from bash, everything works perfectly. However, when I run the same script using the expect utility, I get the following error when I try to access the folder ...
3
votes
1answer
716 views

Integration of afuse user-level automounter with sshfs as a systemd service spawned from login for local users

Edit 2020: I've been using the systemd-answer posted below for several years now, and am quite happy with it. To facilitate working with remote files, I setup afuse with sshfs to run from .bashrc of ...
0
votes
0answers
11 views

SSHFS with server side renames / move

I'm mounting a remote system with SSHFS with the goal of being able to move folders and rename files inside the remote system using my GUI file manager. However it seems that every time I try to do ...
1
vote
1answer
23 views

resources mounted via sshfs and fstab on a nginx-server give 404 errors - gone on refresh

Here is a scetch of the situation: I'm running a nginx server (machine 2) which provides the work of our students. The student work itself lies on another machine (machine 1): our gitolite server. ...
4
votes
1answer
1k views

Is there a way to use sshfs for a machine “two jumps away”?

For transferring files between two Linux machines I always felt more comfortable using the graphical file managers such as Nautilus, which offer the option to connect to a remote machine via SSH. ...
2
votes
2answers
2k views

SSHFS Error: “Bad SSH2 cipher spec 'arcfour'” & “read: Connection reset by peer”

Hellow world! So I've started developing a project that will run on rPi-3B+. I've run into a problem with SSHFS. Right now I'd really like to be able to edit, and commit, the git repo stored on the ...
0
votes
2answers
671 views

sshfs through two hops?

I want to mount a folder in a remote location to /mnt/volume on my mac but this folder is usually accessed through a login server myname@server-login.com using SSH like ssh -A -Y -o myname@server-...
16
votes
7answers
37k views

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 ...
0
votes
0answers
68 views

How to exclude folders in sshfs mounting?

Is it possible to mount a folder with --no-recursive option and --folder-exclude, maxdepth options?
0
votes
1answer
71 views

ssh into mac from raspberry pi

I am trying to mount a shared drive that exists on my mac in my raspberry pi. I tried searching many different threads on stackoverflow and stackexchange and couldn't find any working solutions. I ...
0
votes
0answers
33 views

how to get desired user permissions from fstab mount?

I'm mounting a directory from a remote host to a directory in my home dir ~/raspi/ using sshfs. I copied root's public key into the remote host's ~/.ssh/authorized_keys file to be able to mount from /...
0
votes
0answers
17 views

Mounted over existing folder

I was trying to mount an sshfs drive in my Documents folder on mac, but I made the mistake of mounting in Documents and not within a folder inside Documents. Everything seems to be gone that I had in ...
-1
votes
1answer
51 views

What's the default port of SSHFS?

I tried to Google this and I found results. Either this is not very documented, either there's something I don't understand but should. It seems like it may be port 9876 like in the documentation, ...
19
votes
3answers
32k views

sshfs - transport endpoint is not connected

After reinstalling the server I can not mount it sshfs root@domain.com:/var /remote_mount fuse: bad mount point `/remote_mount': Transport endpoint is not connected update # ssh root@domain.com The ...
0
votes
1answer
22 views

Modified mask/effective doesn't apply when creating files over ssh/sshfs vs. on machine itself (same user)

I set up mask like setfacl -R -d -m m::rw ., and it works fine on the local machine (that I am ssh'd in right now, its headless). I can have two users modify and read the directory. But when I am ...
0
votes
2answers
205 views

SSHFS: Cannot umount / re-mount remote directory after connection is interrupted

I often use sshfs to mount a remote directory to make it appear as local: sudo sshfs -o allow_other myname@server:/remote/path /mnt/remote/ Occasionally there could be interruption to the connection ...
0
votes
2answers
250 views

How to use both ssh and sshfs through VPN with single connection?

I am used to mount remote filesystem by sshfs to edit code and view files and also login via ssh to run the code and any commands. Now I have to connect to the network via VPN before I can ssh/fs ...
1
vote
1answer
77 views

Define systemd service conditional to network ID

I have the following problem: I have my network drive in my home network that I would like to mount via sshfs. Being in my local network I don't have to care that much about encryption and could use ...
0
votes
1answer
178 views

sshfs in fstab connection reset with ssh tunnel in ~/.ssh/conf when 'manual' command works fine

I'm trying to set up an sshfs mount in fstab for persistent mounting of a network directory that has to be accessed via an ssh tunnel. my .ssh/config looks like this: Host A Hostname outer....
6
votes
2answers
358 views

SSHFS/SFTP : Vim hangs when trying to edit file over sshfs and can't upload file over MTU size over sftp

My university provides an ssh access to the students university accounts, and I just set up an sshfs to access some folders on my remote account. I am running pop_os on my local machine and using ...
4
votes
2answers
7k views

How to mount automatically sshfs when RSA authentication is not an option?

I would like to mount a file system on a remote machine automatically at each Linux startup. However I always need to use password authentication because I cannot use ssh-copy-id. How do I make this ...
0
votes
3answers
2k views

sshfs with on-demand mounting

I followed instructions for sshfs "on demand" mounting, but it doesn't work. I added this to /etc/fstab: username@hostname:/ /mnt/remotes/hostname fuse.sshfs noauto,x-systemd.automount,_netdev,users,...
1
vote
1answer
117 views

Permissions problem with remote mount

I am having a simple permissions issue that the solution, or proper setup is eluding me. I have two servers sitting side by side on the same network. .80 is the web server and .40 is a file server. ...
1
vote
2answers
4k views

How to make an fstab entry for sshfs on non-standard SSH port and using ssh key

The server is listening on port '8765' and requires a SSH key for authentication. I can mount the remote directory using this command: sshfs -o idmap=user,port=8765 stephen@server:/export/usb2T /mnt/...
0
votes
1answer
181 views

transmission-cli cannot save to an sshfs mount

Setup: remote server running Debian 9 (no GUI). Normally, I run transmission-cli without any issues. I want to have transmission-cli save to a remote location. The remote location has plenty of ...
6
votes
1answer
5k 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/ drwxr-xr-...
1
vote
0answers
41 views

sshfs troubleshooting: what would cause openssl to fail?

I believe sshfs requires an sftp server on the remote computer (router): ipkg list_installed | grep -i sftp openssh-sftp-server - 5.9p1-1 - sftp-server only from a FREE version of the SSH protocol ...
5
votes
0answers
680 views

SSHFS mount option default_permissions does not support ACLs - please explain

In regard to the FUSE GitHub page, I have some questions: Does the quote below mean SSHFS does support ACLs if default_permissions is not used? Does it mean that if one needs ACL support and proper ...
1
vote
0answers
254 views

Connection reset by peer while trying to mount sshfs in fstab

I have the following line in fstab sshfs#dimskraft@MYSERVER:/ /mnt/MYSERVER fuse _netdev,user,idmap=user,transform_symlinks,identityfile=/home/dimskraft/.ssh/id_rsa,allow_other,default_permissions,...
0
votes
0answers
53 views

How to securely set up SSHFS up in /etc/fstab with a LUKS encrypted drive?

I would like to be able to securely mount a encrypted drive over sshfs onto my local computer. The remote computer is mine, but should be thought as a untrusted machine as the remote machine is not ...
0
votes
0answers
43 views

cp from locally mounted sshfs corrupting .gz files

I have used sshfs to locally mount a SFTP server's filesystem. I am trying to copy .gz files from the sshfs mount (/mnt/mysftp/) to /tmp and noticed when the file is large (~10MB+), it will copy over ...
0
votes
0answers
56 views

Using trash program with sshfs possible?

When using trash of the package trash-cli in a mounted sshfs it does not put it to trash but gives me trash: cannot trash regular file 'ex.e495213.1'. Is there a way to use a trash program in a ...
1
vote
2answers
203 views

sshfs in fstab: addressing same server through different networks

Host and Client Ubuntu 19.04. OpenSSH I have a SSH server in my home LAN that I mount to my laptop using the LAN network address. When I'm at my weekend hideaway, I have to change my fstab to mount ...
6
votes
3answers
15k 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 ...
0
votes
1answer
126 views

Symlink on remote file server to refer to file on local machine over sshfs

I have an sshfs mount to my file server. In the mounted directory there is a symlink that points to /tmp/localfile. /tmp/localfile does not exist on the remote server, but does exist on the local ...
1
vote
0answers
65 views

backup privileged data on remote servers without root ssh

I'm sufficiently new to Linux that I don't understand how to do what I think I want. If you think you know what I actually want, please tell me. I would like to use Duplicity to backup privileged ...
3
votes
2answers
2k views

How to auto mount an ssh file system on demand with an RSA key

I am trying to auto mount a folder from my raspberry pi (/home/pi/server_folder), to a local folder (/home/my_name/raspberrypi). I can do this with sshfs (auto mount in fstab) when I set up a blank ...

1
2 3 4 5