Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
15 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
42 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
11 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
44 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
34 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
12 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
110 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
99 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
10 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
43 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
92 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
70 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
59 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
34 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
117 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
149 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
235 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
90 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
567 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
37 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
594 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
196 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
98 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 ...
0
votes
1answer
48 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
0answers
15 views

How to mount Shares via WAN - VPN not an option

I have a small server at home with Samba Shares. I'd like to access those shares at work and have them always mounted on my work laptop at startup. But I dont want Samba to be connected to the ...
0
votes
1answer
298 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
0answers
99 views

sshfs allow some users not all?

As root, I mount successfully a network point using SSHFS on a local mount point /local_s . This mount point has root:root 755 permissions. If I use: sshfs -o idmap=user user@host:/remote_s /local_s ...
0
votes
1answer
548 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 ...
0
votes
0answers
182 views

How to maintain contents of an sshfs mounted directory within a git repository in a smart way?

I have a git repository ~/repo, that has a remote at ssh://git@gitlabinstance/repo.git. I have an embedded linux device (no git is available on the device) which I can access using ssh and where I ...
2
votes
0answers
249 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
214 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....
2
votes
0answers
414 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
227 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
39 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
143 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
100 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 ...
3
votes
0answers
76 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
194 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
228 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
731 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
11k 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
727 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
651 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
635 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 ...
4
votes
1answer
3k views

allow all users to access sshfs mounts

What is the best-practices way to allow all local users to access sshfs mounts when the mount is established by an arbitrary non-root user? (Access will be according to file permissions, of course.) ...
0
votes
1answer
838 views

Why can't www-data access an sshfs mount?

I have made an sshfs mount as follows (33 is the uid of the www-data). Listing the folders and files shows them as having read and execute access for www-data. But when my application running as www-...
1
vote
0answers
368 views

Using sshfs with Synology NAS results in connection reset

I use sshfs to mount a folder from a synology NAS (DS216+) locally to my Ubuntu machine. The command I use is sshfs -o uid=1234,gid=1234,allow_other,default_permissions mysynology.box.com: /mnt/local....
0
votes
1answer
201 views

Cifs share mount on a VPS without cifs module build in kernel

It is possible to mount a samba share on a vps without cifs module buit in kernel? I installed cifs-utils and smbclient, I can see samba shares with command smbclient -L 192.168.5.1 I added in /etc/...
0
votes
0answers
477 views

behavior of the sshfs user permissions

I want to use one drive of the remote server in my current Linux system. So I have found out SSHFS is an option for that.. Using sshfs I am able to map the remote system drive as mount point in ...