Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know that since SMB is not secure, opening port 445 on firewall makes your computer vulnerable. To secure my connection, I want to run a SMB mobile app via SSH. Would I still need to open port 445 on my router to enable SMB? Would my host computer be protected by running SMB over SSH?

share|improve this question
Not exactly the answer to your question, but did you consider sshfs? It exists for Android,… – MariusMatutiae Nov 27 '13 at 18:38
I am not sure if I understood the question. But: No, you make connection to your host computer via SSH. Forward the port over a tunnel to your device. And connect locally on your device to port 445. So only port 22 is needed. – Edgar Klerks Nov 27 '13 at 20:11
SSH is not a good choice for this. Get yourself a real VPN tool that gives a full IP link. – Zoredache Nov 28 '13 at 0:47
Thanks for the reply. Would I still need to open SMB port on my router? – synthesis Nov 28 '13 at 11:19
It's not opening port 445 on your firewall that makes your computer vulnerable; it's running an SMB server. Blocking port 445 on your firewall mitigates that vulnerability, but it doesn't eliminate it entirely. – Mike Scott Nov 17 at 18:02

1 Answer 1

Here is a simpler solution which is suitable if local filesystem sharing is not necessary:

  2. configure SSH access over internet to a server/router which has network access to the necessary SMB server.
  3. When connecting to the SSH server, define port forwarding from local port 445 to the SMB server IP, port 445.
  4. access the SMB server share via \\localhost

If local file sharing is necessary, a more difficult but achievable way is described here -

share|improve this answer

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.