Hot answers tagged

28 votes

How to avoid sshfs freezing?

If you started sshfs with -o reconnect, killing it's hanging SSH process will make it reconnect. First find the matching SSH, for example: ps -ef ... user 9644 1 0 11:15 ? 00:00:00 ssh -x -a -...
Beli's user avatar
  • 399
28 votes

How to mount remote SSHFS via intermediate machine? Tunneling?

You can use option ssh_command of sshfs to do the trick: sshfs ma: /mnt -o ssh_command='ssh -t mb ssh' Unmount with the usual fusermount -u /mnt Sorry this is 7 years late...
Rodrigo Farias's user avatar
17 votes
Accepted

cd in a Makefile doesn't seems to be taken into account after sshfs

However, the cd command does not change directory. It does – but it only affects the temporary shell subprocess spawned by 'make', not the interactive shell above them. The "current directory&...
u1686_grawity's user avatar
14 votes

Getting `sshfs` working on WSL or finding an alternative

So I have a workaround that you might like. I installed SFTP Net Drive 2017 and then remotely connected to the file system I wanted. I mapped it (via the GUI) as R:\. From WSL, you can then map R:\ ...
chris's user avatar
  • 141
12 votes

How to mount remote SSHFS via intermediate machine? Tunneling?

This is what works for me on HighSierra 10.13.6, SHFS version 2.5 (OSXFUSE SSHFS 2.5.0) OSXFUSE 3.10.4. FUSE library version: 2.9.7 Based on Rodrigo Farias's answer above + clemisch and Ohad Rubin ...
dcneuro's user avatar
  • 121
12 votes

SSHFS remote directory mounting syntax

In my Windows 10 mounting home directory of remote ssh server worked in user's powershell using command net use S: \\sshfs\user@host\. Note single dot at the end! Without the dot it did not work. ...
Kristjan Adojaan's user avatar
10 votes

Ubuntu SSHFS doesn't sync

Add -o cache=no to the command sshfs [email protected]:ftp.myproject.com/myproject.com/public_html /home/anton/Documents/MyProject -o cache=no The same has been answered here: https://stackoverflow....
Coder's user avatar
  • 466
10 votes
Accepted

What are the difference between nfs over ssh and sshfs?

As the name implies, NFS is a network filesystem, i.e., a protocol designed for accessing files on a filer. As it consists of multiple services and uses multiple ports, it can appear a bit clunky and ...
basic6's user avatar
  • 2,657
10 votes
Accepted

Getting `sshfs` working on WSL or finding an alternative

Since I asked this question, Microsoft has released WSL 2 in its Insiders Preview ring. Since this provides a full Linux kernel to WSL, no more workarounds are necessary to get SSHFS to work. Update: ...
Isaac Corbrey's user avatar
8 votes

faster way to mount a remote file system than sshfs?

I found turning off my zsh theme that was checking git file status helped enourmously - just entering the directory was taking 10+ minutes. Likewise turning off git status checkers in Vim.
bloke_zero's user avatar
8 votes

faster way to mount a remote file system than sshfs?

After searching and trial. I just found add -o Compression=no speed it a lot. The delay may be caused by the compression and uncompression process. Besides, use 'Ciphers=aes128-ctr' seems faster than ...
maple's user avatar
  • 180
7 votes

How to use sshfs on cygwin

You might want to look at https://github.com/billziss-gh/sshfs-win which provides a way to map sshfs drives in windows. If you are using cygwin, you are on windows. Ironically, this port of sshfs to ...
dcg's user avatar
  • 81
7 votes

SSHFS remote directory mounting syntax

Simple answer: Use \\sshfs.r instead of \\sshfs Long answer: The simple syntax to access a remote folder is: \\prefix\remoteuser@host[\path] According to the SSHFS-Win readme, there are 4 prefixes to ...
Eduardo Bissi's user avatar
5 votes

read: Connection reset by peer using sshfs to connect to AWS

I had to use some additional debugging flags to identify the problem, as just -o sshfs_debug didn't cut it: -o sshfs_debug -o debug -o LogLevel=DEBUG3 This led me to the very verbose ouput that ...
Anna's user avatar
  • 236
5 votes

How to use sshfs on cygwin

sshfs is not a Cygwin package. You can check this on https://cygwin.com/packages/package_list.html. To use sshfs, you would follow the installation instructions on the sshfs github page. https://...
pak's user avatar
  • 187
5 votes

How to use sshfs on cygwin

There is the win-sshfs. It is not an equivalent of linux sshfs, but it allow to represent remote file system to windows file system. For now install&run proccess looks like the following. ...
Loom's user avatar
  • 385
4 votes

Using sshfs to mount a remote filesystem on OSX fails periodically with "Bad address"

You are not specifying the mounting address (where to mount on the host machine). Do it like this sudo sshfs [email protected]:/ ~/mnt/remotefs . to mount it on the current directory. Note ...
Vaibhav's user avatar
  • 41
4 votes
Accepted

How can sshfs be made more reliable?

Use -o reconnect I have been using it for a while now with that option and it reconnects even when the remote server comes back from offline state to online. Ubuntu 14.04 both machines.
Rehmat's user avatar
  • 206
4 votes

Mount an sshfs via macfuse at boot

I'd like to update the great answer from dag729. On El Captain OS X with the OS X Fuse 2.8.3 the things are slightly different: Some paths are changed osxfuse must be forced to run in foreground mode ...
oliora's user avatar
  • 139
4 votes

faster way to mount a remote file system than sshfs?

I've been doing testing with various tools on MacOS 12.1 on an M1 mac and wanted to share some possibly helpful results. Short Version: Try using rclone mount instead of sshfs. This enabled me to get ...
Jazz Weisman's user avatar
4 votes

How to mount local directory to remote hosts?

is late but... maybe other can use this. If you want to connect the remote server to your local computer, make a tunnel with ssh. $ ssh -NR 6969:localhost:22 my-ssh-key Then you have a connection ...
Anthony Milan's user avatar
4 votes

SSHFS remote directory mounting syntax

The net use command did not work for me, admin or not, PowerShell or CMD. Open Windows Explorer Find this pc, right-click on it Select map network drive Enter \\sshfs\[email protected]/../../etc/...
Roy H's user avatar
  • 41
3 votes

How to avoid sshfs freezing?

Use sshfs -o reconnect,ServerAliveInterval=1 your-remote-ssh: your-local-folder to make ssh send message to server every second. This will enable sshfs to detect disconnection quickly and ...
Qin Heyang's user avatar
3 votes

How to (cleanly) dismount sshfs when mounted on a NFS mount point?

This post is rather old. Currently on RHEL8, this is all that is required. There is no need to kill sshfs processes: sudo umount <mountpoint>
John Czukkermann's user avatar
3 votes

nginx doesn't read mounted /usr/share/nginx/html

For those that it may help in future, I had this issue, and after a little more searching I found that adding -o allow_other to the mount call managed to make it work No idea what it's doing under ...
LordAro's user avatar
  • 131
3 votes

sshfs to mount ftp folder to local folder not working

For the FTP protocol, you should use curlftpfs: # Install curlftpfs on Debian: apt-get install curlftpfs # Create a folder to mount in: mkdir /mnt/myfolder # Mount - exchange username, password and ...
Kasper Tikjøb's user avatar
3 votes
Accepted

Is sshfs over the internet safe?

Yes, SSHFS is safe to use over public Internet. Internally it uses the SSH File Transfer Protocol, which requires an existing SSH session to be set up, so you get all the security benefits of “regular”...
slhck's user avatar
  • 227k
3 votes
Accepted

Does SSHFS store files on the local machine when loading files?

sshfs acts as a client for the SFTP protocol, which supports partial file operations. That is, the client doesn't need to retrieve the whole file (like FTP would) – for example, if an ...
u1686_grawity's user avatar
3 votes
Accepted

Permission denied when directly copying from SSHFS to SD

SSHFS is FUSE. Without allow_other the filesystem runs with the privileges of the user that ran it, and only that user can access the filesystem. In your case even root cannot access the filesystem. ...
2 votes

sshfs device is busy

If you already ensured no process is still using the filesystem before trying "regular" umounting: fuser -vm /mount/point and/or lsof /mount/point to find them, quit/kill/...
Totor's user avatar
  • 1,459

Only top scored, non community-wiki answers of a minimum length are eligible