Skip to main content

Questions tagged [sshfs]

SSH File System (sshfs). A tool that uses SSH to mount a remote filesystem on a local machine.

Filter by
Sorted by
Tagged with
110 votes
7 answers
219k views

Mount remote directory using SSH

How to mount a remote directory using SSH to be available same as if it is a local directory?
Maythux's user avatar
  • 84.9k
60 votes
6 answers
64k views

How to run a script, depending on internet connection

I often mount a remote drive using sshfs. I would love to have this mount automatically. However, if I mount it in my .bashrc or startup scripts, the mount often fails because my wireless internet ...
Joey Eremondi's user avatar
36 votes
2 answers
25k views

fuse: unknown option `defer_permissions'

The following error is given when trying to connect to a remote host using sshfs on Ubuntu (16.04 LTS): fuse: unknown option `defer_permissions' after using the command: sshfs -o allow_other,...
dhargo's user avatar
  • 461
30 votes
4 answers
47k views

sshfs is not mounting automatically at boot, despite /etc/fstab configuration

Setting up some Ubuntu (13.04) workstation, I am trying to have a remote filesystem mounted (over ssh). The current config I created user someuser and added it to the fuse group My fstab entry reads ...
Ad N's user avatar
  • 410
29 votes
1 answer
37k views

SSHFS - auto reconnect

I have an SSHFS mount that I can connect using the command line: echo myPassword | sudo sshfs [email protected]:/ /media/NAS -p31337 -o workaround=rename -o password_stdin -o allow_other which seems ...
Ozzah's user avatar
  • 683
23 votes
8 answers
73k views

How to auto mount using sshfs?

I am using the following command to mount a ssh ubuntu directory to my ubuntu pc. sshfs [email protected]:/dir/dir /home/username/mount/xxx My question is, can I create a script for this in my ...
imuneer's user avatar
  • 445
23 votes
2 answers
39k views

sshfs is mounting filesystems as another user

So I am trying to mount a folder from another computer in my LAN, and I am able to ssh without any issues. But, I am unable to make any changes when I access the mounted folder. This is what I have ...
Robert's user avatar
  • 331
21 votes
2 answers
61k views

fuse: bad mount point `/mnt': Transport endpoint is not connected

I needed to locally edit remote files on my server, so I tried to mount the whole remote file system (/) on my local system with SSHFS like so: $ sshfs [email protected]:// /mnt -p 22 Then it ...
KiriSakow's user avatar
  • 853
21 votes
1 answer
11k views

sshfs mounts with user privileges but for umount I need root. why? how?

I'm trying to unmount from nautilus, the directory created by sshfs, but I get this error: Unable to unmount dir umount: /home/user/dir is not in the fstab (and you are not root) I'm not getting ...
Mihai G.'s user avatar
  • 213
19 votes
4 answers
23k views

Is there a GUI utility to mount remote filesystems over SSH?

Is there a GUI utility to mount remote filesystems over SSH (SSHFS)?
Olivier Lalonde's user avatar
18 votes
4 answers
23k views

Automatically mount sshfs on startup?

Is it possible to automatically mount a sshfs filesystem whenever the connection goes up?
Olivier Lalonde's user avatar
17 votes
6 answers
46k views

sshfs giving "remote host has disconnected"

I am trying to mount an sftp connection into a folder using sshfs with the following command which throws an error. ~$ sshfs [email protected]:/ testfo remote host has disconnected The same error ...
Slava Knyazev's user avatar
17 votes
2 answers
13k views

How to prevent SSHFS mount freeze after changing connection after suspend?

I am using SSHFS with reconnect attribute. It works fine, when I suspend notebook and start it again. But problem is when I take notebook somewhere - meaning different IP and different connection (...
Frodik's user avatar
  • 388
13 votes
1 answer
23k views

Permission denied on SSHFS automount

I am trying to set up an SSHFS connection between two Ubuntu machines, using /etc/fstab so that they automount from the beginning. I have created an .ssh directory in my home dir on both machines, I ...
Questioner's user avatar
  • 6,869
11 votes
1 answer
16k views

How do I mount my Android's filesystem over the network with sshfs?

How do I mount my Android device over the wireless network with sshfs so I can access its files trough my file explorer or terminal?
Frederik Baetens's user avatar
11 votes
1 answer
4k views

sshfs transform_symlinks is broken

I've been using the same fstab command for a while now: sshfs#[email protected]:/home/user /home/user/vps fuse user,port=22,uid=1000,gid=1000,allow_other,reconnect,transform_symlinks 0 0 And it used to ...
Jelle De Loecker's user avatar
10 votes
4 answers
25k views

sshfs with fstab: connection reset by peer

I am trying to allow my laptop (Ubuntu 13.04) to access my PC (Lubuntu 13.04) hard drive through SSHFS. I'm using RSA keys to connect. It works perfectly fine if I type this in the terminal: sshfs ...
user avatar
9 votes
3 answers
20k views

sshfs - No such file or directory

I'm trying to mount a folder over ssh using sshfs. Evertime I do so I get the error No such file or directory My terminal: user@computer:~$ sshfs [email protected]:/volume1/somedir ~/mnt/somedir ...
csauve's user avatar
  • 571
9 votes
4 answers
38k views

I can SSH into a remote host but get "Connection reset by peer" with SSHFS, what do I miss?

I created a key pair to connect to a Synology disk from 12.04. Deployed, edit ~/.ssh/config to automatically use it. Tested: ssh user@remotesynology -> works like a charm. Tested on a second remote ...
stwissel's user avatar
  • 6,261
9 votes
2 answers
3k views

Nautilus freezes if mounted SSHFS-Device is unreachable

Using SSHFS to mount remote file systems in the user space, I have the problem that all instances of Nautilus use to freeze, if one of the mounted hosts is unreachable. That problem occurs with ...
user5950's user avatar
  • 6,266
8 votes
3 answers
30k views

How do I specify SSH options for SSHFS?

I had originally asked this as a follow-up question here. Unfortunately, there haven't been any replies so I am posting it as its own question. According to the documentation, you are supposed to be ...
Andrew Shum's user avatar
8 votes
3 answers
2k views

Permissions issues with mounting remote server into a specific folder

I'm doing the following to mount a remote server to a specific path on my server: sshfs [email protected]:/backup/folder/ /home/myuser/server-backups/ However when I mount the server the folder ...
aneuryzm's user avatar
  • 889
7 votes
3 answers
22k views

Auto mount sshfs volume through fstab with password auth

I have a headless server running Ubuntu 12.04.4 that needs to come back up after a reboot without user intervention. There is an existing manual process that involves looking at files on a remote ...
Chris Smith's user avatar
7 votes
2 answers
17k views

trying to use sshfs on ubuntu

i'm trying to use sshfs on ubuntu. i have root access on the server i'm trying to connect to. but everytime i try to connect using my ubuntu laptop, the message i get is the following: cp@cp-...
dot's user avatar
  • 535
7 votes
3 answers
23k views

Cannot write to Folder mounted with SSHFS

I just created a folder according to SSHFS (Ubuntu Docs) sudo apt-get install sshfs sudo gpasswd -a jm fuse sshfs -o idmap=user [email protected]:/path/to/folder folder Then I found that the folder is ...
JM at Work's user avatar
  • 1,965
7 votes
2 answers
7k views

SSHFS mount does not work on startup using fstab

While I am able to mount a folder from a remote server using mount folder the entry in fstab is giving Connection reset by peer: I have the following in my fstab sshfs#username@remote:/folder/ ...
glarkou's user avatar
  • 568
7 votes
2 answers
4k views

SSHFS files from one server to another

I am trying to find the most secure way to transfer files from one server to another. I have the following architecture: Currently I am using the main user salamis in order to mount the directories. ...
glarkou's user avatar
  • 568
6 votes
5 answers
7k views

gedit + sshfs won't save (vi saves fine!)

I mounted a remote directory using sshfs and I can't save files using gedit, while saving same file using vi works. Changin permission to o-r (640) allows gedit to save files OK. Is there a way to ...
Slava N's user avatar
  • 311
6 votes
1 answer
3k views

sshfs 'no such file' error

I'm trying to use sshfs to share a folder between two of my computers. I can ssh from the server, and see the folder I want to share. However, when I run sshfs, I get: david@desktop2:~$sshfs ...
David Oneill's user avatar
  • 12.2k
6 votes
1 answer
3k views

How to permanently mount a remote share?

I've got an NAS file server on my local network, in my windows days I just mapped a drive to it and it was just there all the time. I'm having trouble doing the same in Ubuntu. I had done this ...
Shazzner's user avatar
  • 1,027
6 votes
1 answer
6k views

Help setting up sshfs

I'm trying to sort out file sharing on my 16.04 PC and have been advised to use sshfs. From the wiki I'm trying to follow the instructions but not getting very far. I've installed sshfs and checked ...
Jon Homer's user avatar
6 votes
2 answers
14k views

Can Nautilus setup SSHFS like/instead of SFTP?

I have Nautilus set up to mount a remote filesystem using SFTP. That works fine, so far, but SFTP seems to have some issues I find unhelpful: When I overwrite an existing text file, the group read ...
ams's user avatar
  • 3,029
6 votes
2 answers
2k views

Use sshfs with ssh-agent and/or kwallet

I am using sshfs with a password protected key pair to mount a remote folder using a shell script. I am also using ssh in that script. Every time I start the shell script I get a password request on ...
Silicomancer's user avatar
5 votes
1 answer
26k views

modprobe fuse returns module fuse not found

I have ubuntu 12.04 and the kernel version is 2.6.32 Linux user1 2.6.32-042stab083.2 #1 SMP Fri Nov 8 18:08:40 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux When i run the command modprobe fuse it says ...
Pradyut Bhattacharya's user avatar
5 votes
1 answer
2k views

What is the difference between "Connect to server..." and sshfs?

Can anyone quickly explain the technical difference between these two methods? Going to Places -> Connect to Server and select SSH (in GNOME) Using sshfs in terminal This probably boils down to GVFS ...
Øsse's user avatar
  • 91
5 votes
2 answers
2k views

Cannot mount anything in a particular local directory using sshfs

I use sshfs to mount a remote directory locally. I use Xubuntu 16.04 inside a VirtualBox virtual machine. Yesterday, while everything was mounted, I saved the state of the virtual machine and closed ...
user2891462's user avatar
4 votes
1 answer
3k views

How can I automount my ecryptfs ~/.private directory without logging in?

On Ubuntu Server 12.04 LTS, ecryptfs is set up where my /home/user/.private directory becomes decrypted when I login. I can then access my files in /home/user/private. But if I don't login to the ...
nLinked's user avatar
  • 3,347
4 votes
3 answers
8k views

Editing remote files via SSHFS mount very slow (Sublime Text)

I'm trying to nail down the best way to work on projects located on a remote server. I use Sublime Text and I've been experimenting with SSHFS on Ubuntu to mount the remote directory locally and then ...
tdc's user avatar
  • 141
4 votes
1 answer
4k views

System hang when using SSHFS

This is just a quick note that I want to share with others. It is about the problem that I encountered with my office machine. It was hanging continuously when ssh mount was used. The main problem is, ...
Borivoje Petrovic's user avatar
4 votes
1 answer
266 views

Nautilus CLI is Extremely Slow for SSHFS Mounted Paths, but the GUI is Fast

I do most of my navigation in the terminal, however in certain circumstances it is nice to open a directory in a GUI. On Ubuntu Linux the default file browser is nautilius. My workflow is typically: ...
Erotemic's user avatar
  • 425
4 votes
1 answer
11k views

Cannot SSHFS mount user home directory

I am attempting to setup a centralized home-directory server through sshfs and pam-mount. Currently I am stuck at this point: When attempting to mount the remote home directory sshfs just gets stuck:...
d_inevitable's user avatar
  • 1,912
4 votes
1 answer
479 views

How to stop SSH filesystem from discarding root permissions after every command?

i have a small bash script that mounts my sshfs... problem is it ask for the server/host password for every mount... i have four mounts and i have to enter it every time for 4 times and its tiresome,...
sarvesh.lad's user avatar
  • 2,524
4 votes
1 answer
3k views

How can I ensure that my sshfs mounted drives stay connected as much as possible?

I have been trying to get this to work forever and ever and it's just past my ability now. I have read just about everything I can on this...and yet I can't resolve the issue. Here's the short story. ...
sfurules's user avatar
4 votes
3 answers
3k views

Unable to create/edit/delete remote files after mounting them locally with SSHFS

I have a basic server set-up using a RaspberryPI, Ubuntu server 20.04, and Nginx. Using ssh, I can edit the files directly in the terminal, but that becomes sloppy, so I am looking for a more elegant ...
alin0908's user avatar
4 votes
1 answer
2k views

Automount remote filesystem on reboot without password with sshfs

What I Want: boot up my system (in this case ubuntu 18.04 on a laptop) have access to a remote filesystem via /home/<user>/mnt/remote-HD0 What I have tried edit /etc/fstab with sshfs command ...
Arthur's user avatar
  • 41
4 votes
3 answers
19k views

"fuse: bad mount point No such file or directory" but the file exists

My system is 32-bit so this answer doesn't help me. I am trying to use sshfs to no avail: $ sshfs -o IdentityFile=/home/aventinus/.ssh/id_rsa [name]@X.X.X.X:/data/[folder name]/[folder name]/ /...
Aventinus's user avatar
  • 206
4 votes
1 answer
6k views

SSHFS very slow in 12.04

I clean-installed 12.04 after using 10.10. When using SSHFS, everything is now very slow. (I am on very fast ethernet, and also tried on wireless). e.g. if I: sshfs [email protected]:/home/user/...
darin's user avatar
  • 41
4 votes
0 answers
825 views

Snap applications (Firefox and Chromium) snap cannot open folders mounted via sshfs

Snap versions of Firefox and Chromium refuse to open folders and files mounted via sshfs while the same folder is normally browseable from the command line and from Gnome and the files can be opened ...
Pavel's user avatar
  • 41
4 votes
0 answers
1k views

I can ssh to the server but sshfs gives me 'no matching cipher found: client arcfour server aes128-ctr,aes192-ctr......'

I can ssh to the server, but sshfs fails with the read: Connection reset by peer error. I have checked all the cases pointed out in this AskUbuntu question, the user is in the fuse group, ...
Alex's user avatar
  • 211
4 votes
0 answers
2k views

Very slow speed while mounting via SSHFS

My host is ubuntu 12.04. My guest is vanilla 3.0.33 kernel with custom rootfs. I have encountered the subj problem, while mounting host folder on the guest machine via sshfs. sshfs [email protected]....
Alex Hoppus's user avatar