Questions tagged [sshfs]
SSHFS is a tool that uses SSH to enable mounting of a remote filesystem on a local machine.
191
questions
0
votes
0
answers
28
views
sshfs in fstab not run in CentOS Stream 8
I added below statement in /etc/fstab.
root@IP:/SERVER_DIR /LOCAL_MOUNT_DIR fuse.sshfs nonempty,allow_other 0 0
But when I boot-up, LOCAL_MOUNT_DIR does not mounted.
Is it right sentence to mount?
OS ...
1
vote
1
answer
72
views
sshfs: how to mount a drive on a SSH double hop with different authentication
I have the following which works to get me to the end server:
ssh -o ProxyCommand="ssh -W %h:%p ServerA" hackJJ@localhost-p 2222
The basic, very basic layout:
Me -> ServerA -> ServerB ...
1
vote
1
answer
163
views
not able to mount filesystem (sshfs) using crontab
I have sh script file which works properly when running from command line using -
./start.sh
which starts a tomcat server and mounts a drive with sshfs
But when i do
crontab -e
@reboot /home/start....
0
votes
0
answers
373
views
Windows can't find SSHFS
When mapping a network drive on Windows 10, after installing SSHFS-Win and WinFsp, I get the error message "Windows can't find ssfhs". Any idea why this is happening? Here is the steps that ...
1
vote
0
answers
503
views
SSHFS on Windows 10 not able to change permissions on mapped drive to Ubuntu target
I have SSHFS installed in Windows 10 and am having a problem that is driving me crazy trying to figure out what is causing it.
I am using the latest packages (just downloaded and installed 2 days ago) ...
0
votes
1
answer
121
views
SSHFS user name containing colon syntax
I can connect to my server using ssh :
ssh -p 22 root@app_name:userName@host
But sshfs thinks app_name is my host :
sshfs -odebug,sshfs_debug,loglevel=debug -o allow_other -p 22 root@app_name:...
5
votes
1
answer
4k
views
cd in a Makefile doesn't seems to be taken into account after sshfs
I have a Makefile with a sshfs command followed with a cd command:
mr: # mount-remote
sshfs -p 5022 -o nonempty myname@myssh.serveur.fr:mnt /home/julien/myworking_path
cd ./...
1
vote
1
answer
2k
views
sshfs permenant mounting without password prompt
I have two Linux machines
Linux 1
Linux 2
I mount a directory on Linux2 to Linux one as below:
sudo sshfs -o allow_other MYUSER@XX.XXX.XXX.XXX:/usr/XXXXX/bin /opt/Project/MountHere/
This works, but ...
0
votes
1
answer
147
views
Make write to sshfs atomic
I'm using sshfs to run some process on one mashine and store the result on another one.
The command I'm using to mount is sshfs user@host:/rempte/path /local/path.
The scrip I'm running creates a file ...
-1
votes
1
answer
857
views
Windows 10 SSHFS Suddenly Stopped Working - System Error 67
I've been successfully using SSHFS on my Windows 10 computer to mount a VirtualBox Ubuntu drive for over a year. Then, suddenly today, I started getting System error 67. I've used the same exact ...
0
votes
1
answer
626
views
Locally edit remote directories/files via ssh tunneling
As the title suggests I want to edit on my local machine (Machine A) files that are in a server (Machine C) that is accessible after sshing to another server (Machine B) (two hops in total).
I'm using ...
1
vote
1
answer
255
views
Why do sshfs and fuse create thousands of file descriptors (unbounded growth) for a Java process?
I'm trying to understand why I see thousands and thousands of new file descriptors such as the following in /proc/PID/fd directory of a java process:
$ sudo ls -lt /proc/585/fd | head
total 0
lr-x-----...
1
vote
0
answers
772
views
rsync --append or --append-verify flags causing transfer to error on resume
Trying to do a transfer with rsync using rsync -rtlv --no-i-r --no-perms --partial --inplace --append-verify /srv/raid /mnt/backup. I use it in a script to transfer the contents of a server's RAID ...
0
votes
0
answers
167
views
What happens to sshfs mounted folders in `/tmp`
As the title suggests, I was wondering what happens to via sshfs mounted folders if they are mapped to a subfolder of /tmp, e.g., /tmp/data. Are they simply unmounted or is the data removed ...
1
vote
1
answer
976
views
passing bash variables to expect script or scripting expect from inside bash
This script is intended to mount the contents of my server at home as a read/writeable drive in mac os. Unfortunately due to the fact that my house has a dynamic public ip address, the ip address of ...
0
votes
1
answer
328
views
Sharing a network drive over WAN with MacOS and Linux
I would like to share a network drive in a way that can be accessed from both MacOS and Linux, over the internet. I have a home Linux server, as well as one on AWS. The MacOS computer will be another ...
1
vote
0
answers
149
views
How I can use STFP share with Vifm on WINDOWS 10?
I want to mount SFTP share to my computer and use it with Vifm.
I tried with sshfs-win, but it is not stable.
0
votes
0
answers
1k
views
Get error logs from sshfs
I connect a network drive using sshfs on my ubuntu computer. Over time the drive disconnects. How can I find out, why this happens? I.e., how can I get a log from sshfs.
I use Ubuntu and the following ...
1
vote
0
answers
512
views
Cannot sshfs to server over proxycommand on Windows
I'm trying to connect through sshfs-win to mount a drive over a jumphost.
I can normally connect through ssh but when invoked over sshfs-win it fails.
Also, I can normally mount the jumphost, but not ...
1
vote
0
answers
183
views
Offline read cache of sshfs
I have a ~1TB music library on a remote server that I would like to setup a local ~100GB cache for such that I can transparently read cached files, even offline. What is the easiest way to do this?
0
votes
1
answer
529
views
Trying to mount remote directory using sshfs: filesystem unresponsive
I'm trying to mount a remote directory using sshfs. I've got my .ssh/config set up so that I can ssh into my user on the remote machine like so
ssh wdev
The remote directory in question (let's ...
1
vote
0
answers
398
views
Error Mounting SFTP Folder using SSHFS on Ubuntu: fuse: unknown option `KexAlgorithms=diffie-hellman-group14-sha1'
On a Ubuntu 20.04 system, I have successfully mounted a SFTP folder by running
sshfs -o KexAlgorithms=diffie-hellman-group14-sha1 foo@example.com:/ ~/foo
However, on a Ubuntu 16.04 system, when I run ...
0
votes
0
answers
371
views
In Windows, Meld can't save to directories mounted via SSHFS-Win. How to enable that?
I have mounted the root directory of one of my Linux boxes to a drive letter in Windows (in this case, P:), using Sshfs-Win. I have imported the directory using SSH root credentials, and therefore, in ...
1
vote
0
answers
2k
views
Speeding up an incredibly slow sshfs going through login ssh tunnel
Sorry if this is answered somewhere and I have missed it. I lack some understanding in how these things work in order to safely choose the best solution.
I, like many others, am working from home.
I ...
1
vote
0
answers
360
views
Map network drive in Win10 using ssh to an intermediate remote machine
In powershell I login via ssh machineA (with password) and then ssh machineB.
I am using SSHFS-Win to mount remote machineA folders (which works fine).
\\sshfs\user@machineA.com\..\..\scratch\user
Now ...
2
votes
1
answer
335
views
Use SSHFS with shared control socket
I start an SSH session with a shared control socket as follows:
ssh -M -S ssh_socket -fnNTC ssh://user@host:9022
I have no problem executing commands using this socket; for example:
ssh -S ssh_socket ...
1
vote
1
answer
2k
views
how to prevent input/output errors when ffmpeg to sshfs mounted fs and connection is lost
I'm recording video across the network using ffmpeg to a filesystem mounted by sshfs. I'm consistently having the issue that if my machine goes to sleep, the ssh connection drops and has to reconnect ...
1
vote
1
answer
2k
views
sshfs-win adds executable permission for all newly created files
I mounted remote ssh file system to my Windows using sshfs-win. But when I create files in Windows they are marked as executable in Linux.
$ ls -l
total 4
-rwxr-xr-x 1 user user 14 Mar 31 20:42 file....
-1
votes
2
answers
617
views
Fuse + sshfs and OSX - cannot delete files
Although I can create and rename files, for some reason I cannot delete files. I am mounting a UBUNTU 18 directory to OSX Catalina.
I have tried all sorts of combinations and used a different user ...
1
vote
1
answer
4k
views
Permission denied when directly copying from SSHFS to SD
I have a remote hard disk mounted with sshfs on a local mountpoint. Furthermore, I have mounted an SD card to the same computer. When I try to copy from the remote disk to the SD card the permission ...
1
vote
1
answer
382
views
How to mount a remote directory using sshfs when the server keeps forwarding me?
maybe this question was asked before but here I go:
I want to mount the user directory of my account on the server of the university I go to. Usually when I log in through ssh I just type in:
ssh ...
0
votes
0
answers
52
views
How to use sshfs to map linux server requiring double authentication?
I have problems using sshfs to map a linux server that requires double authentication.
The server is accessible via ssh in two steps:
1) ssh access with user and passwd
2) sudo user2 and passwd.
...
2
votes
1
answer
1k
views
Does SSHFS store files on the local machine when loading files?
My company wants to use SSHFS to mount a directory from a secure remote server. An application on the local (client) machine needs to access files to read and edit their content (read/write). However, ...
1
vote
2
answers
146
views
any way to emulate permissions with sshfs?
I have a directory structure where lots of data are stored and permissions are important. I also have a rsync.net account. I am investigating the possibility to use the rsync.net storage for the ...
0
votes
1
answer
905
views
Passwordless sshfs mount over reverse-ssh
I'm trying to mount a host directory onto a remote machine using reverse-ssh and sshfs
For the most part, running the following command on the host works
ssh -t -L 0.0.0.0:10000:localhost:10000 -i /...
1
vote
1
answer
371
views
fusermount prepends /home to path when resource is busy
Problem:
I created a bash script for SSHFS mount/unmount using:
1| dir=$(mktemp -d)
2| sshfs user@server $dir
3| cd $dir
4| bash
5| fusermount -u $dir
6| rmdir $dir
Once these lines are ...
1
vote
1
answer
1k
views
Is sshfs over the internet safe?
I'd like to try sshfs for accessing my Nextcloud files on the command-line. I've used dav2fs but it's a bit slow to connect; for example, executing the command ls on a directory mounted with dav2fs ...
0
votes
0
answers
37
views
git makes my sshfs busy
I have sshfs running on mac and I want to unmount it, however it says that resource is busy. sudo lsof | grep /path/to/sshfs shows two git entries: one CWD entry in the root of sshfs (there is a git ...
1
vote
1
answer
96
views
How to make movemail work on SSHFS filesystems?
I would like to avoid setting up an IMAP server and instead use mailutils' movemail in combination with SSHFS to move over some mails from an external host to my local machine. Unfortunately it fails:
...
2
votes
0
answers
665
views
SSHFS keeps asking for a password despite ssh key present
I have a valid SSH key on my client, and my public key is uploaded on the remote server.
I can login with the SSH key without being prompted for password using SSH, but when I try doing so with SSHFS ...
0
votes
1
answer
1k
views
home directories via sshfs and pam_mount
Users' home directories are on a server. They shall be mounted via sshfs on a client when a user logs in, using the password the user provided as credentials. The pam_mount system is provided for this....
0
votes
0
answers
482
views
sftp and sshfs don't work on Ubuntu VM 18.04, while ssh and scp work fine
I have installed an Ubuntu 18.04 on an windows 7 machine.
I try to map a folder from local host VM to a target hardware module that runs linux yocto.
I gave the following but with no success :
sshfs -...
0
votes
0
answers
387
views
Mounting large remote directory using SSHFS
I have a large remote directory with 600GB of content, that is split over 6 million MP3 files, without any sub directories.
Will the large number of files under a single directory, cause any ...
14
votes
6
answers
58k
views
SSHFS remote directory mounting syntax
A Windows-10 64-bit PC was outfitted with:
winfsp - msi download of latest release version or the Github project
sshfs-win - msi download of latest release version or the Github project
A remote ...
4
votes
0
answers
4k
views
Native Windows 10 support for sshfs
What (if any) native Windows-10 sshfs support is available?
I am aware of sshfs-win on Github.
1
vote
0
answers
770
views
Make sshfs unmount on disconnect
I have a Linux guest on my Mac host that I mount a folder from with sshfs.
My workflow is that I turn on the VM in VirtualBox, connect with sshfs with sshfs max@vm:/home/max/scripts/ ~/vm/ -o ...
0
votes
1
answer
832
views
meld takes ages to open and fails with org.gtk.vfs.UDisks2VolumeMonitor:: Timeout was reached (g-io-error-quark, 24)
git mergetool opening meld takes ages to open and finally fails with:
invoking IsSupported() failed for remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor:: Timeout was reached (g-...
0
votes
0
answers
658
views
Map X: via sshfs command from Windows 10 BASH command line
I am interested in having a remote user mapping a drive to a remote sshfs server from a BASH running on Windows 10.
sshfs username@server:/home/UsersHomeFolderAtServer X:
or
sshfs username@server:/...
0
votes
1
answer
142
views
What is the most efficient way to migrate a website over SFTP without full SSH Access?
I need to migrate a reasonably large website to a new server for a client with the least amount of downtime as possible.
Unfortunately the client's current host only allows SFTP access without full ...
1
vote
1
answer
2k
views
Kinit with systemd in user mode
I have created a keytab file under the user home directory $HOME/client.keytab. The authentication cache file is in it's default location /tmp/krb5cc_%U (where %U is the UID). Now, I have this simple ...