Samba over SSH -- Opening Windows to UNIX safely and reliably

From assela Pathirana
Revision as of 18:08, 10 October 2007 by Root (talk | contribs)
Jump to navigationJump to search

Introduction

Samba is a suite of programs that enables interoperability between Linux/Unix servers and Windows clients. See What Is Samba? for more. [1]. I use it to map some UNIX directories in a server at my workplace to several of my Windows desktops. Recently I had to put my server behind a firewall and close all the ports of communication except SSH (22). Now, Samba or any other windows NetBIOS communication (in plain language things like 'sharing' files and folders between windows computers.) needs port 139 to be open. My solution was to tunnel NetBIOS (port 139) communication over SSH. This has added advantage of the entire communication between UNIX server and windows client being encrypted.

The Tools

There are many ways of doing this. A google serch will point to some very informative pages on doing this based on wikipedia:PuTTY, a SSH client for windows.