0

I'm looking for a way to make a directory on a linux system available for reading to other linux and windows clients. The share must require some authentication from the client and the passwords and files must be sent encrypted.

The clients should only be able to access the shared directory by some protocol, but NOT be able to log in via ssh. If I'm not mistaken that rules out sftp, scp and samba.

Is there a way to achieve this by some other file sharing technique or settings or do I need to have a linux user that can also do ssh login?

If I need a user who can ssh, I have found

https://askubuntu.com/questions/93411/simple-easy-way-to-jail-users

but would prefer not to have the user at all, or block it from logging in.

  • 1
    Scponly is one tool you you cold use. Some ftp daemons allow virtual users and can use sftp/ftps. – Iain Sep 4 '15 at 6:42
  • You want to require authentication, but don't want to have a user... that's not going to work. – womble Sep 4 '15 at 6:50
  • @lain this looks exactly like what I need for linux clients, thanks – Cinnam Sep 4 '15 at 6:50
  • if you want to share files with Linux and Windows clients your best option is probably WebDAV or Samba.Both support authentication and don't require special clients. I would go with setting up an Apache httpd to act as an WebDAV server. – Henrik Pingel Sep 4 '15 at 6:58
  • @knowhy Thanks, I've decided to use WebDAV with SSL. Would you mind posting your comment as an answer so I can accept it? – Cinnam Sep 7 '15 at 10:46
0

Using WebDAV protocol is probably the best option for this requirement. You can setup Apache httpd to act as an WebDAV server. WebDAV is a good solution for this requirement because Apache server is flexible when it comes to authentication and WebDAV does not need any special ports opened.

You can consult this tutorial for instructions how to setup Apache as an WebDAV server.

0

I think you can use Sync by BitTorrent. It's based on Pear to Pear communication and is super fast.

  • Thanks, I might use that for windows clients. The free version is limited though, so I'll wait a bit if there are other options – Cinnam Sep 4 '15 at 6:53
  • I prefer Oranges to Pears ;-) ;-) ;-) – crimson-egret Sep 4 '15 at 16:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.