LinuxQuestions.org
Review your favorite Linux distribution.
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 10-07-2007, 05:42 AM   #1
Bateman
LQ Newbie
 
Registered: Oct 2003
Distribution: Gentoo
Posts: 28

Rep: Reputation: 15
File transfer over several ssh sessions


Scenario:
Computer A ---(ssh)---> Computer B ---(ssh)---> Computer C

I'm trying to transfer files from Computer C straight to Computer A. Computer C is only reachable from Computer B. I'm trying to transfer large files straight from Computer C to Computer A without first having to send them to Computer B (as I don't have permissions to store data on Computer B). Is there a way to accomplish this? Could I setup a tunnel?

I'm using ssh for all my logins. Computer A is often running Windows (with pscp and putty), but could be running unix as well.

I've searched the forum, but come up with nothing. All help and links are appreciated!

Last edited by Bateman; 10-07-2007 at 05:46 AM. Reason: Tried to delete the message or move it to the Server forum
 
Old 10-07-2007, 08:49 AM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Use ssh's tunneling capability.

Do this:

ssh -L 9876:compC:22 compB

Leave that terminal and open another on compA. Then, copy your files directly from compA to compC:

scp -P 9876 *.files localhost:

You can do this with putty as well, but I don't know how.

Last edited by kotnik; 10-07-2007 at 08:53 AM.
 
  


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
file transfer over ssh? jme Linux - Software 5 11-13-2006 01:30 AM
Program to transfer file 'backwards' over SSH jantman Linux - Networking 6 10-17-2006 12:10 PM
SSH File transfer wjeanpaul Linux - General 19 02-07-2006 02:34 PM
File transfer with SSH? Baix Linux - Newbie 5 01-28-2005 06:24 PM
ssh file transfer? Apostasy Linux - Newbie 11 07-30-2004 10:33 PM

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

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