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
14 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 ...
0
votes
0answers
10 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
58 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
25 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
33 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
172 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
15 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
29 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
1answer
45 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
105 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 ...
0
votes
0answers
14 views

About the use of sshfs between multiple servers

For now, I can use ssh -p 2222 username@ip1 to login in a jumpserver, which will have an option to login in target server with ip2 by 1) Enter ID directly login or enter part IP, Hostname, Comment ...
3
votes
1answer
80 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
82 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: ...
0
votes
0answers
16 views

sshfs umask argument doesn't change result

I am trying to mount a remote folder using sshfs. It works great besides the umask being incorrect. When I create a file or folder I get the equivalent of 0022 for rwx r-x r-x. I want equivalent of ...
2
votes
2answers
120 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
234 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# # ...
0
votes
0answers
11 views

Unable to use sshfs with tmate; what else can I do?

I cannot use sshfs with tmate, as stated by N. Viennot in https://groups.google.com/forum/#!topic/tmate-io/Ng8CN-K6xpE So, what else can I do? I need to mount a directory of a remote PC which has ...
2
votes
1answer
98 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
165 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
104 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
70 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
40 views

Remote mount overwrite local file

Following set up, I mounted a remote file via sshfs and the connection to the server got interrupted. Visual Studio Code must have locally saved the file or/and loaded a previous already locally ...
0
votes
0answers
195 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
1answer
218 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-...
9
votes
1answer
327 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
142 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
847 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
38 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
2answers
829 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
306 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
143 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
58 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
410 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
741 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
284 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
236 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....
3
votes
0answers
465 views

SSHFS mount option default_permissions does not support ACL's - please explain

In regard to the FUSE GitHub page, I have some questions: Does the quote below mean SSHFS does support ACL's if default_permissions is not used? Does it mean that if one needs ACL support and proper ...
1
vote
0answers
264 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 ...
0
votes
2answers
44 views

Is it somehow possible to prevent sshfs to create goutputstream files?

Every time I use sshfs to securely mount a directory over the net, sshfs creates a lot of file like this one: .goutputstream-YVG5CZ Over the time, the directory get's really messed up. Is there ...
0
votes
1answer
159 views

Is available set access permissions only for my user for sshfs mountpoint

I create in /media/$USER new directory myvps. Set permissions 700. Next I mount remote directory by sshfs. Now my vps directory has root:root owner. Of couse, I can not get access from my $USER. So,...
4
votes
1answer
3k views

How to deal with freezes caused by autofs after network disconnect

I mount four servers (3 via cifs, 1 via sshfs) using autofs. auto.master /- /etc/auto.all --timeout=60 --ghost auto.all /mnt \ /server1 -fstype=cifs,rw,credentials=/etc/.smbcredentials....
1
vote
0answers
119 views

New files created through sshfs date from 1970

I wish to mount a remote Linux directory to my local laptop using sshfs. I do this by using autofs. In /etc/autofs/, I therefore have in the auto.ssh file (I used the Arch wiki to guide me for the ...
2
votes
0answers
86 views

SSHFS mounts on a mobile laptop - system hangs when not on LAN

This is an Arch Linux system. I have 7 SSHFS mounts listed in /etc/fstab. They all use these options: <source> <mountpoint> fuse.sshfs x-systemd.automount,_netdev,user,follow_symlinks,...
1
vote
1answer
226 views

Is it possible to mount a SSHFS point in a way to preserve (local) ownerships and permissions?

if I mount a sshfs point as root and use the option allow_other then on the original server (SERVERA) the files are owned by the SSH user, and on the destination server (SERVERB) are accessible (...
4
votes
1answer
254 views

re-touching files over sshfs

Machine A's file system is mounted on machine B via sshfs. A process running on B, which was initiated from A by ssh touches a file on the mounted file system of A to communicate a signal; the signal (...
2
votes
0answers
821 views

How to use ACL with SSHFS

I want to allow users in the same group ("team") to edit the same files on the server. The directory containing these files is mounted via SSHFS. So far, I was not able to accomplish my goal using ...
4
votes
2answers
13k views

Proper way to set the umask for SFTP transactions?

My goal is to allow all users who are members of the "team" group to edit (r/w) the same set of remote files -- normal work collaboration -- using a local mount point. I have tried NFS and SSHFS using ...
1
vote
0answers
813 views

SSHFS in fstab: Is there logging?

I have configured a sshfs-mount in my fstab (with key-auth). sshfs#sam@192.168.22.100:/ /mnt fuse defaults,allow_other,reconnect,_netdev 0 0 Works well as expected. Last thing I need is a log ...
1
vote
1answer
739 views

Git repository on SSHFS: unable to append to '.git/logs/HEAD': Invalid argument

Here is my error: fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Invalid argument Etckeeper worked until today. The only recent change to the system has been the upstream ...
1
vote
0answers
699 views

automount sshfs with autofs and sshpass

I want to mount partitions from a remote NAS that doesn't support login with a certificate. I created or edited the following files: /etc/ssh/sshpass.232 with ssh password /etc/ssh/sshpass.232.sh ...