LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2005, 10:22 AM   #1
FNC
Member
 
Registered: Feb 2001
Location: South Africa
Distribution: Fedora, Mandriva, PCLOS, SUSE - anything a can get my hands on
Posts: 140

Rep: Reputation: 15
SSH and Samba over internet


Hi

I have a Linux box at the office that is connect to the internet through DSL. It shares some files on the office network using samba. What I need to do is to be able to:

1. Connect to the Linux box using ssh
2. Access the samba shares
3. access the other pc’s shares (if possible)

From my home pc through the internet (or any pc connected to the internet for that matter)
Any advice would be greatly appreciated
 
Old 11-09-2005, 10:28 AM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
what's the "other pc," in number 3?

ssh can handle all that. if pc 3 is windows, just mount the shares on the linux box and you can get them with scp (secure copy, comes with ssh).
 
Old 11-09-2005, 10:38 AM   #3
FNC
Member
 
Registered: Feb 2001
Location: South Africa
Distribution: Fedora, Mandriva, PCLOS, SUSE - anything a can get my hands on
Posts: 140

Original Poster
Rep: Reputation: 15
The other pc are all windowz workstations. I can ssh to the Linux box when I’m on the local office network, but not through the internet. I also cannot ping the Linux box’s ip (the one assigned by ISP).

Any Ideas?
 
Old 11-09-2005, 10:45 AM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
you have to set up your firewall to accept ssh and ping (if you want to ping, not necessary though). you should follow an SSH tutorial to make sure you are setting up your keys and everything securely. there are plenty of good ones out there that will take you through it step by step, just google it and post back if it doesn't work. it's relatively straightforward though, so you shouldn't have a problem.
 
Old 10-25-2007, 08:00 AM   #5
ohswrestler2009
Member
 
Registered: Oct 2007
Posts: 39

Rep: Reputation: 15
I'm having trouble finding help on the web.
Can you give me any advice?
I'm pretty much trying to do the same thing;
Samba over SSH.
Thanks.
 
Old 10-25-2007, 08:49 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think it would be better setting up a virtual network connection than using samba through an ssh tunnel. Samba and Windows normally use more than one port to function. I think you would need to set up the windows computer to use a single port for smb, such as 445. This may effect how it operates in the local network. Even with a VPN, you will need a wins server at the gateway to browse across subnets.

You could install cygwin/X on the windows machine at work that you want to connect to and have an sshd server running accepting connections. Then you could use scp, sftp or the fish: protocol in konqueror from your home computer. You will need to have the port you use forwarded to your work computer.

You will need to run this by your IT dept. at work, if one exists. If you work for a publicly held company you have to be very careful. It might not be legal due to SOX.

Last edited by jschiwal; 12-13-2007 at 10:12 AM. Reason: typo vpn->vnc
 
  


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 - How can i alllow someone SSH to my network from Internet - please help me b:z Linux - Networking 4 04-05-2005 07:21 AM
what is SSH, something to do with internet? BajaNick Linux - General 8 07-12-2004 11:57 PM
ssh tunnelling internet access bfkeats Linux - Networking 2 03-19-2004 03:13 PM
Internet via SSH and Samba Remote Mounting Problem alimharji Linux - Networking 19 02-08-2004 02:03 PM
SSH Internet Problem alimharji Linux - Networking 1 02-02-2004 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:23 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