LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-05-2007, 08:19 AM   #16
ohswrestler2009
Member
 
Registered: Oct 2007
Posts: 39

Original Poster
Rep: Reputation: 15

Still having some problems with this.
Can anybody help?
 
Old 11-05-2007, 11:43 PM   #17
ub3r1337/\/00b
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 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*:

/ect/samba/samba.conf

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.


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.
 
  


Reply


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 08:49 AM
Trying to get permissions correct with Samba and SSH Micro420 Linux - General 7 09-13-2006 10:49 PM
SSH tunnel using PuTTy - Samba jackster Linux - Security 4 02-12-2005 04:07 PM
Samba, ssh, port forwarding, and dynamic IP mdkelly069 Linux - Networking 0 03-19-2004 10:47 AM
Not able to remotly connect using SSH or Samba Danielallan Slackware 2 12-07-2003 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 PM.

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