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
0answers
29 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
54 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
30 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
33 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
17 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
110 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
65 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
126 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
255 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
89 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
34 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
124 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
36 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
40 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
44 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
60 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
40 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
163 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
0answers
129 views

SSHFS autoreconnect not working

I am using SSHFS on Debian stretch, remote authentication per username/password. My SSHFS options are: -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,compression=no,kernel_cache But ...
0
votes
1answer
67 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 ...
1
vote
2answers
2k 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
19 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
72 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
211 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
314 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 ...
3
votes
1answer
209 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(...
0
votes
1answer
264 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
150 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
1k 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# # ...
3
votes
1answer
686 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
266 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
206 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
150 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
287 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
523 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
509 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
223 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 ...
1
vote
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 ...
1
vote
0answers
53 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 ...
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,...
2
votes
1answer
540 views

Is it possible to have conditional options in ~/.ssh/config based on the calling application (ssh or sshfs)?

In my ~/.ssh/config file I have the following option: RemoteCommand /bin/sh -c 'tmux has-session && exec tmux attach || exec tmux' This automatically starts tmux and connects to an existing ...
1
vote
0answers
182 views

sshfs with automount failing silently

I am attempting to "permanently" mount a network drive (CentOS 7.4) on my local machine (macOS 10.12 Sierra) using sshfs and automount First off, is this actually the most appropriate tool to use ...
1
vote
1answer
92 views

How do you use SSHFS to work on drives in /dev/

My laptop for some reason will not power an external 2.5" HDD, so I am using a Raspberry PI to connect to the drive. The problem is, I am struggling to perform tasks such as formatting disks and ...
0
votes
1answer
845 views

What is/How to create a UID/GID File

I've started creating dynamic sshfs mounts to other devices on my local network, but the equivalent users which are the same, have different UIDs/GIDs. From what I've found whilst searching for a ...
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 ...
2
votes
0answers
343 views

How to automount SSHFS shares for a user upon login?

My question is how to mount SSHFS shares as the user (not root) upon demand or upon user login using only tools that are in my distro's core repos. I'm using Arch. I don't mind writing a small script, ...
1
vote
0answers
298 views

Can’t sshfs from CentOS

I have installed sshfs on my 32bit CentOS 6.9 and trying to mount the same type remote machine: modprobe fuse yum install epel-release mkdir mydir yum install sshfs I run command: sshfs root@10.1....
5
votes
0answers
626 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
368 views

SSHFS permissions not correct when mounted with fstab

If the SSHFS share in question is mounted manually by the user with the mount command, the permissions are correct and the user has the expected access. No problems. However, the mount needs to be ...

1
2 3 4 5