Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-05-2007, 09:19 AM   #16
Registered: Oct 2007
Posts: 39

Original Poster
Rep: Reputation: 15

Still having some problems with this.
Can anybody help?
Old 11-06-2007, 12:43 AM   #17
LQ Newbie
Registered: Oct 2007
Posts: 6

Rep: Reputation: 0
Ross pwns.

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
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



here find the Host allow portion

Change to this:
workgroup =
server string = Samba Server Version %v
encrypt passwords = yes
netbios name = kyle(anything really)

interfaces = lo eth0
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.

That's it.

-First change the /ect/samba/samba.conf file to what i listed.

-Than open the ssh tunnel

-then enter that command for smbclient

-You're in.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH and Samba over internet FNC Linux - Networking 5 10-25-2007 09:49 AM
Trying to get permissions correct with Samba and SSH Micro420 Linux - General 7 09-13-2006 11:49 PM
SSH tunnel using PuTTy - Samba jackster Linux - Security 4 02-12-2005 05:07 PM
Samba, ssh, port forwarding, and dynamic IP mdkelly069 Linux - Networking 0 03-19-2004 11:47 AM
Not able to remotly connect using SSH or Samba Danielallan Slackware 2 12-07-2003 03:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration