Originally Posted by
volkswagner
SAMBA is designed for local LAN access and is not secure for exposing to WAN.
If you have opened port 22 on your machine to the outside world, it is best to use key authentication, disable root ssh access and disable password ssh auth.
At the very minimum you should have disabled root ssh access or have a super strong password.
I'm curious if you have samba working locally by changing the security = share?
What type of client are you connecting to the server with? If you are using a Linux client, you can simply use ssh or sftp for file level access.
Ubuntu desktop has a builtin client to connect via ssh/sftp.
From Nautilus:
> File > Connect to Server > enter server name or ip address > choose SSH as type (port 22) > leave folder as / or change to /home/shares/documents > enter username and password and connect.
You can use this method from outside you lan by substituting the servers external ip address.