Turns out to be super easy, there are long how to docs out there that deal with all the trivialities and different scenarios, but basically if you have ssh access to a server that is the SMB server you simply need to do this:

ssh -f -N -g -L 9000:localhost:139

and then you can simply mount it to a directory by doing:

sudo mount -t smbfs -o username=USERNAME,password=PASSWORD,ip=localhost,port=9000 //SERVERNAME/SHARE /mnt/remoteshare

Posted
AuthorKevin McAllister
CategoriesGeneral