libfuse / sshfs

A network filesystem client to connect to SSH servers
GNU General Public License v2.0
6.04k stars 496 forks source link

The error message is misleading and unhelpful #307

Open opk12 opened 5 months ago

opk12 commented 5 months ago

First, sshfs is very useful and I'd like to thank you for your work.

When sshfs cannot start, it prints read: Connection reset by peer.

  1. --debug should be mentioned: An error has occurred, pass --debug for more information.
  2. The message is often wrong. The actual problem is likely misconfiguration and not related to the network, as described in this thread at unix.SE.
KaeTuuN commented 4 months ago

This Error Message is not from SSHFS, but from the sshd service. Therefore here is the wrong place for that.

opk12 commented 4 months ago

--debug should be mentioned in any case, no?

This Error Message is not from SSHFS, but from the sshd service.

If you mean that sshfs echoes a string received from the server, that can't happen if the connection failed.

KaeTuuN commented 4 months ago

Sorry, bad wording from my side.

The Message you recieved is from the SSH Client trying to connect to the server and getting refused.

If you mean that sshfs echoes a string received from the server, that can't happen if the connection failed.

This not completly correct. The Client establishes a connection to the server and then tries to authenticate. However, the Authentication Process fails and the connection is then closed by the server. And this leads us to your error message.