LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-03-2004, 05:25 PM   #1
mikescar
LQ Newbie
 
Registered: Feb 2004
Location: Richmond, VA
Distribution: ubuntu / debian
Posts: 6

Rep: Reputation: 0
remote file access (non-networked machines)


hello,

i'm using SSH to log into one machine. i also have ssh access on a second machine that stores some important files. both machines are a few hours away.

what i would like to do is SSH into the first machine, and then from there, get files from my account on the second machine.

is this possible? or, how?

many thanks in advance,
mike
 
Old 02-03-2004, 05:30 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Ok, I think this is what your situation is. You have three machines: A, B, and C. You are at machine C. Machine C can connect to B but not to A. Machine B can connect to A or C.

If this is the case, what you need to do is setup SSH forwarding. The man page on ssh will tell you how to do this specifically, but the idea is you setup ssh to listen on a random port on machine B. When you connect to that port it'll actually connect you through to machine A.
 
Old 02-03-2004, 05:46 PM   #3
mikescar
LQ Newbie
 
Registered: Feb 2004
Location: Richmond, VA
Distribution: ubuntu / debian
Posts: 6

Original Poster
Rep: Reputation: 0
remote access

ok, i will clarify using the A / B / C's

i am at machine C. machine C can connect to either A or B using SSH.

i ssh into machine A to set up some scripts there. i can SSH from A to B (and from B to A).

i would like to copy some files located on Box B over to Box A. i could do this from either B or A.


i'm sure it's pretty easy but i am still new.


thanks a lot,
mike
 
Old 02-03-2004, 06:01 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
AHHH, I see. Forget ssh tunneling then. SSH into either machine A, or machine B. Then you scp to copy the files.

For instance, if you are logged into machine A and you are copying files from A to B you would do something like this

scp -r directorytocopy username@machineB.net:locationtocopyto
 
  


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
Accessing Networked machines vishalsethia Linux - Newbie 14 05-25-2005 01:57 AM
Remote Access to File ptreves Linux - Networking 5 09-09-2004 01:21 PM
remote file access l32 Linux - Networking 6 07-12-2004 12:50 AM
remote file access tsitras Linux - Networking 1 03-28-2004 09:58 AM
Terminating Remote File Access AceTech747 Linux - Security 15 01-05-2004 10:09 AM

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

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