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 06-04-2014, 04:29 AM   #1
calzakk
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
Using SSH over VPN


Hi all,

I've got a couple of machines within a LAN (one Linux, one Solaris) that are running SSH. Within the LAN any machine can SSH to these.

I've then got a laptop that can connect via VPN to the LAN over the internet.

The problem I'm having is that the laptop cannot SSH to either of the two machines.

Is there a setting within sshd_config that by default prevents such connections from succeeding? It's not a firewall issue as port 22 on both machines is open and connections do succeed within the LAN.

Thanks in advance.
 
Old 06-04-2014, 07:37 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
when you connect via VPN are you on the same IP scheme as the rest of the LAN or is it a specific different IP scheme?
 
Old 06-04-2014, 08:21 AM   #3
calzakk
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
when you connect via VPN are you on the same IP scheme as the rest of the LAN or is it a specific different IP scheme?
Hi lleb,

Yep, that's correct. Using DHCP both in the LAN and at home, both networks using the same IP scheme (192.168.40.*).
 
Old 06-04-2014, 09:59 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
both your home and the office LAN are on the same IP scheme? that is your problem. no can do mate. you run into IP conflicts and a myriad of other issues.

try setting your home LAN to a different IP scheme, that would be the first step to troubleshooting.

http://www.cisco.com/c/en/us/support...3-same-ip.html

this is a good link to get some info from about the IP scheme's.
 
1 members found this post helpful.
Old 06-04-2014, 03:03 PM   #5
calzakk
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks lleb, that's exactly the solution!

All working now
 
Old 06-04-2014, 09:39 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
glad it helped. basic 101 for networking and VPNs
 
  


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 VPN - Routing protube Linux - Networking 1 02-15-2012 03:27 AM
Ssh vpn qwertyjjj Linux - Newbie 21 01-07-2010 03:12 AM
SSH vs VPN maxsanders Linux - Networking 3 08-14-2007 03:22 PM
VPN vs SSH metallica1973 Linux - Security 4 06-06-2007 10:25 AM
ssh tunnel and VPN metallica1973 Linux - Security 5 05-12-2006 12:54 AM

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

All times are GMT -5. The time now is 03:48 AM.

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