Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my own little slice of the internet, I have a share that I want to serve up so I can mount it on my system at home and work with files as if they were local. I have this setup as a Samba share at the moment. However, I'm not entirely sure on how to go about keeping this setup secure. What is the recommended way to secure this setup?

Right now I'm thinking to (obviously) require a username and password and open up the relevant ports, but how does one set this up so that the password isn't transmitted in the clear? Is there something like a "Samba over SSH" protocol? Thanks.

share|improve this question
Yes, OpenVPN. See Lucas' comment below. Note, however, you are now stepping off into deep water. Perhaps you should be doing this with an OS that you are already familiar or at least learn to swim before you venture out to play with the sharks. – Magellan May 22 '12 at 1:09
Without explaining why this is "stepping off into deep water" this is kind of a useless comment. What things should I be aware of? I work with Linux on a daily basis. – Lester Peabody May 22 '12 at 2:41
If you don't know enough about networks to understand just how obvious the answer to your question really is, you're stepping off into far deeper waters than you realize. – Magellan May 22 '12 at 4:14
Then I can learn...? I thought that was the point of the Stack Exchange. – Lester Peabody May 22 '12 at 4:24
up vote 6 down vote accepted

I would use VPN over SSL/TLS. (openvpn)

share|improve this answer
Thanks for the tip. It's working well, cheers. – Lester Peabody May 22 '12 at 4:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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