Alright Dude, here what you do.
To open the ssh tunnel type in the terminal
:ssh -N -T -L 139IP Address):139 &
The 139 is the Samba port, like vnc, the ip adress is yours.
next start teh samba server with:
:service smb start
Than start teh nmb server, its part of the smb client and must be used in order to have samba work,research it dude. to do this type:
:service nmb start
Next this is the command you will use:
:smbclient \\\\ohs-room311-q\\C$ -p 139 -U ohs.student%pan****s
To break this down, go to http://learnlinux.tsf.org.za/courses...n/ch08s02.html
basically the slashes need to cancel out and two does this
-the ohs-room311-q\\ is the windows destination
-the C$ is the file you want to control, so you would have complete access to C:\
-the -p i have no idea
-the 139 is the samba port
- i have no idea what the -U is for
-the ohs.student%pan****s is the user name and password for the windows machine
:*BEFORE YOU DO THIS YOU WILL NEED TO EDIT THIS FILE*:
here find the Host allow portion
Change to this:
workgroup = orange.k12.nc.us
server string = Samba Server Version %v
encrypt passwords = yes
netbios name = kyle(anything really)
interfaces = lo eth0 10.163.4.127/24 10.163.4.127/24
hosts allow = (any ip dress you wish to allow)
with interface it is the computer you are using with a /24 after you IP address, i dont know why.
-First change the /ect/samba/samba.conf file to what i listed.
-Than open the ssh tunnel
-then enter that command for smbclient