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
31 views

need help with sshfs

I can't get sshfs to work, no matter what I try it won't accept my password. My hostname is netnoob44 and my username is seeder, and I am trying to use it like this. sudo sshfs -o allow_other,...
1
vote
0answers
37 views

Cannot change ownership in SSHFS/FUSE

I encounter permission denied when trying to change the owner using chown of a folder on mounted SSHFS: # /etc/fstab sshfs#ubuntu@my.remote.tld:/mnt/data /data fuse user,_netdev,nonempty,...
0
votes
1answer
51 views

sshfs appears to mount, but ls & cp on local mount-point hang?

I am FUSE mounting a remote FreeBSD machine with sudo sshfs -C user@remote-ip:/home/user/ /mnt/localmnt/ -o allow_other -o SmartcardDevice=/dev/hidraw7 to authenticate via an OpenPGP smartcard ...
0
votes
1answer
43 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 &...
0
votes
1answer
26 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
1answer
144 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 ...
1
vote
1answer
115 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>:...
1
vote
0answers
170 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 ...
8
votes
1answer
335 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,...
1
vote
1answer
17 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 ...
1
vote
1answer
62 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
0answers
16 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
44 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. ...
0
votes
1answer
142 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
80 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
39 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
19 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
100 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, ...
0
votes
1answer
30 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 ...
1
vote
2answers
368 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 ...
1
vote
1answer
93 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
247 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
510 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 ...
1
vote
1answer
152 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
0answers
49 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 ...
1
vote
0answers
392 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
67 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 ...
0
votes
1answer
201 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
101 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 ...
1
vote
2answers
245 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 ...
0
votes
1answer
106 views

Adding entries to fstab results in emergency mode

This is my local system configuration. NAME="elementary OS" VERSION="5.0 Juno" I am mounting my remote server's file system on a subdirectory by this command, which is working fine. sudo sshfs -o ...
2
votes
2answers
5k 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
0answers
28 views

sshfs - incorrect, old directory structure shown in remote volume, can't access data

I sshfs'd into a remote server with standard syntax: sshfs ubuntu@server.somewhere.com:/home/ubuntu/ ./myfolder -o IdentityFile=~/.ssh/my-private-key.pem -o allow_other Everything worked fine. The ...
0
votes
2answers
115 views

Access serial port of sshfs mounted filesystem

I'm trying to read /dev/ttyUSB0 of another computer mounted via sshfs, however commands such as cat /mnt/tmp1/dev/ttyUSB0 return "Permission denied" (I'm mounting the filesystem to /mnt/tmp1). I've ...
0
votes
2answers
282 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 ...
0
votes
1answer
464 views

Is there some program that can copy sparse file (/var/log/lastlog) over ssh as fast as cp (on local pc)?

I'm backing ip my server via rsync over ssh but /var/log/lastlog file is 1.2G (it takes only 24K on the hdd). On a local machine cp can copy it for no time (a few ms) but rsync requires reading the ...
5
votes
1answer
363 views

Does `sshfs -o allow_root` open any security holes? Why isn't allow_root enabled by default?

allow_root This option is similar to allow_other but file access is limited to the user mounting the filesystem and root. This option and allow_other are mutually exclusive. From mount.fuse(8) If the ...
0
votes
1answer
383 views

Bash Scripting: How to check for active sshfs mount in dir?

If currently have this code: 0130: moba(){ 0131: if [ -z "$(ls -A /home/me/Documents/A/B)" ]; then 0132: echo "Empty" 0133: sshfs me@domain:/home/C/D /home/me/Documents/A/B/ 0134: ...
2
votes
2answers
197 views

Prompt to reflect sshfs mountpoint?

I use sshfs to remotely mount a remote folder to my local machine, the problem is that I need a way to know that I'm working under remote folder on local machine OR local folder to avoid accidentally ...
0
votes
1answer
2k views

Krusader Configuration for SCP [duplicate]

A remote router is accessible via SSH: 16.04 scp copies files back and forth from the command line. ASUSWRT-Merlin RT-AC68U 384.7-2 Sun Oct 21 17:18:03 UTC 2018 USER@router:/tmp/home/root# # ...
6
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. ...
0
votes
1answer
309 views

Shared drive accessed in windows via sshfs not showing certain large directories

I've just set up an Ubuntu 18.04 server, and mapped its drive to my windows notebook using sshfs-win. This works for the most part -- I can read and write to most locations on the drive. However, ...
0
votes
1answer
333 views

SSHFS symbolic link does not show up

So this issue is actually occurring between OSX and CentOS. I created an ssh mount using osxfuse: sshfs [ssh config name]:/remote/location/dir.ec.tory ~/client/location/dir.ec.tory -o ...
0
votes
1answer
207 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 ...
0
votes
0answers
382 views

sshfs permission denied but works good with same pem file on a different client host

I looked at a lot of SO/SE answers already. I feel my solution is close but not quite right yet obviously. [ga@sam ~]$ sshfs -o IdentityFile="my.pem" ga@192.168.1.111:/mnt/fastssd z820fastssd fuse: ...
0
votes
2answers
832 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-...
8
votes
1answer
633 views

sshfs: chroot all non-root users to specific directory

On a server I need unrestricted ssh access for root, and restricted for all other users. I would like to restrict all non-root users to: no ssh login only allow mount /mnt/data/ using sshfs I see ...
1
vote
1answer
280 views

Using sshfs along with ssh ControlMaster connection

I want to use sshfs to mount a directory from the remote system automatically when I make the first ssh connection and to unmount the directory when I finally disconnect. I currently use ssh's ...
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 ...
3
votes
0answers
83 views

Abusing sshfs to mount “many” remote folders

Assuming that I build a management interface which lets me easily mount folders from remote machines on a workstation, is there a problem with having, let's say, a half a dozen of sshfs mounts with ...

1
2 3 4 5