7

I want to mount my home folder on a Synology NAS. I can SSH to the NAS but when I try sshfs, I get this error 'read: Connection reset by peer'. I used the following command:

sshfs [email protected]:/volume1/homes/john /my_nas -p 1919

I also tried this path: /var/services/homes/john, but had no success.

How can I find/debug the problem?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
Alex
  • 397
  • 3
  • 6
  • 18

3 Answers3

13

Just enable the SFTP Service in Control Panel->File Services.

Then mount with sshfs username@machine:/homes/username /directory

enter image description here

Vindolin
  • 246
  • 2
  • 5
3

To add to the answer from @vindolin (..I don't have enough reputation just to add a comment),

As well as enabling SFTP, you also need to enable permissions to FTP for the specified user. If that permission isn't enabled, you will continue to get the connection reset by peer error.

Screenshot of DSM FTP permission dialogue

Guy
  • 894
  • 1
  • 6
  • 20
dfluff
  • 39
  • 1
  • This does seem to be adding a further answer as well, so maybe more than a comment. – Guy Jan 22 '18 at 18:04
  • 2
    I don't know if something's changed in a later version of DSM, but I seem to be able to use sshfs fine by just enabling SFTP without the FTP application permission enabled for that user. – jamesdlin Jan 24 '19 at 23:17
1

You can try to add -o sshfs_debug to your command to get some debugging information for sshfs.

If that doesn't give you more detailed information, use any of

-o LogLevel=VERBOSE
-o LogLevel=DEBUG
-o LogLevel=DEBUGX  # with X being 1, 2 or 3

for increasing ssh verbosity.

Anthon
  • 78,313
  • 42
  • 165
  • 222