mount sshfs error: "read: Connection reset by peer"

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

mount sshfs error: "read: Connection reset by peer"

Post by ^rooker »

[PROBLEM]
When trying to mount a share over "sshfs", I get the following error message:
read: Connection reset by peer
I verified that I can properly connect to the server using ssh, and the configuration in /etc/fstab hasn't changed. So it "should" work.

[SOLUTION]
I tried to mount it as root.
A post in an Archlinux forum pointed me in the right direction:
"Don't use sshfs as root. It's a FUSE filesystem and meant to be user mounted."
That was it. Don't use sudo, don't be root:
Just use "mount /mnt/xxx" instead of "sudo mount /mnt/xxx"
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Re: mount sshfs error: "read: Connection reset by peer"

Post by ^rooker »

Just ran into a related error message:
fusermount: user has no write access to mountpoint /mnt/xxx
The message pretty much includes the solution ;)
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply