LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-22-2013, 11:28 AM   #1
georgewhr
Member
 
Registered: Nov 2012
Location: SF Bay Area
Posts: 47

Rep: Reputation: Disabled
How to get in a different network


Hello Guys, here is the problem. I have 3 host machines, h1,h2,h3. h2 has two ethernet cards connect to h1 and h3 seperately, so that means h1 and h2 are in a LAN, h2 and h3 are in a LAN.

Is there a way that I can run some commands and transfer some files directly from h1 to h3 and skip h2? Here is the thing, we can't do anything in h2 and we can't set up a LAN between h1 and h3

some people said I can use sshlib to create a ssh session, but I m not sure how it's gonna work

thanks!

the good thing is we know the passwod for all of the root

Last edited by unSpawn; 05-22-2013 at 12:14 PM. Reason: //Retain 0-reply state
 
Old 05-22-2013, 01:31 PM   #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
i take it h2 does not allow h1 and h3 to see each other. if this is for security reasons, then id encourage you NOT to pass files between h1 and h3.

if this is just a thing that has nothing to do with security, OSHA, HIPA, etc... then setup ssh between h1 and h3 and you are done. are any of them accessible from the WAN?

i suppose the worst case is to setup a reverse ssh connection using h2 as a go between.

make a connection from h2 into either h1 or h3 but set it to a higher port (1025+), and set up the forwarding.

http://www.howtoforge.com/reverse-ssh-tunneling

something along that line, you might need to do a bit more google searching, but it can be done.

what happens at this point is h2 is nothing but a passthrough. none of the information sent from h1 to h3 will be stored on h2.
 
Old 05-22-2013, 06:01 PM   #3
georgewhr
Member
 
Registered: Nov 2012
Location: SF Bay Area
Posts: 47

Original Poster
Rep: Reputation: Disabled
Thank you bro, I ll try to use reverse SSH to see if it works

Quote:
Originally Posted by lleb View Post
i take it h2 does not allow h1 and h3 to see each other. if this is for security reasons, then id encourage you NOT to pass files between h1 and h3.

if this is just a thing that has nothing to do with security, OSHA, HIPA, etc... then setup ssh between h1 and h3 and you are done. are any of them accessible from the WAN?

i suppose the worst case is to setup a reverse ssh connection using h2 as a go between.

make a connection from h2 into either h1 or h3 but set it to a higher port (1025+), and set up the forwarding.

http://www.howtoforge.com/reverse-ssh-tunneling

something along that line, you might need to do a bit more google searching, but it can be done.

what happens at this point is h2 is nothing but a passthrough. none of the information sent from h1 to h3 will be stored on h2.
 
Old 05-27-2013, 01:19 AM   #4
bloodstreetboy
Member
 
Registered: May 2012
Posts: 201
Blog Entries: 3

Rep: Reputation: 37
Yes it will work definitely.

Even you can use scp command to copying files between the systems.
 
Old 05-27-2013, 08:08 AM   #5
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
If you want to copy the files between system, you can use rsync too.
 
  


Reply



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
Fedora C2 - Wireless network drivers? Broadcom 802.11g Network Adapter FragTek Linux - Wireless Networking 7 01-22-2010 12:10 AM
Network connection stopped working... network icon at bottom right corner dissapered? MFA Linux - Newbie 6 03-29-2009 06:00 AM
Unable to connect to wifi network with network manager. Poss authorization issue openSauce Linux - Networking 14 12-13-2008 10:05 AM
In FC6 network interface doesn't come up if 'service network restart' command is run rajat Linux - Networking 2 05-02-2007 11:53 PM
Debian 3.1r0a, Realtek RTL-8169 network controller slow on network mvr853 Linux - Networking 0 07-21-2006 08:20 PM

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

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