0

I have a NAS that exposes its filesystem as SFTP, but it doesn't give any access to connect throught SSH as a normal user. I've tried to use sshfs to mount it from a remote webserver, but I receive the error:

read: Connection reset by peer

Does sshfs require a user that can do login or is there a way to mount a "SFTP-only" share in Linux?

Thank you very much in advance.

flip79
  • 143
  • 8

1 Answers1

3

First of all it is important to understand that there is no such thing as "SFTP-only". SFTP is not a stand-alone protocol, it is a subsystem of SSH. The SFTP client connects to the SSH server, authenticates, and then opens the SFTP subsystem (or it opens a shell, which is what your NAS does not allow, but you don't have to worry about that).

So... assuming that SFTP access to your NAS is properly configured, you shouldn't have any problem mounting it as a virtual drive using sshfs... well, to be honest the number of people who recently have reported problems with sshfs to me is embarrassing.

Therefore I would recommend you to try alternatives to sshfs. One such alternative that immediately comes to my mind (and it's free) is SFTP Net Drive (but it supports only Windows clients). So far I never had any trouble with it. :)

FjodrSo
  • 294
  • 1
  • 6
  • Thank you very much for the clarification! Unfortunately using an additional software is not an option for me because I need to connect to my NAS starting from a webserver with Linux SSH access :( – flip79 Nov 17 '14 at 23:35
  • Sorry, I don't think I understand your comment. I understand that you cannot install anything on your NAS of course. But how about the client-side? Can you install software on the client-side? What operating system is running on the client-side? What kind of permissions/privileges/access do you have on the client-side? Such information would help me provide you with further assistance. Thank you. – FjodrSo Nov 19 '14 at 00:22
  • Unfortunately there is no "client side". I have a webserver (with Virtualmin) on remote, and this NAS in the office. – flip79 Nov 19 '14 at 07:36