Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a large amount of data on scratch space at computer b that I want to get.

In my network I cannot directly connect to computer b (ssh exits with "No route to host"); I must first connect to computer a, and then connect to computer b.

I cannot move the data from the scratch space on computer b to computer a because of a disk quota that is imposed on me at computer a.

How can I move the data from computer b to my computer in this situation?

share|improve this question
    
How can you connect to computer b? –  Thorbjørn Ravn Andersen Jan 26 '11 at 14:34
add comment

3 Answers

If nc suggested by Ignacio is not available on computerA, you can create a tunnel:

ssh -f -N -L 1234:computerB:22 computerA

(drop -f to keep it from going to the background). You should then be able to connect to port 1234 on localhost to access computerB, i.e.

scp -P 1234 user_on_computerB@localhost:/awesome/stuff/there /here
share|improve this answer
add comment

Use ProxyCommand in your ssh config, along with nc on computer A:

Host computerB
    ProxyCommand ssh computerA nc computerB 22
share|improve this answer
add comment
  • one option is to mount b into a, from a:

    sshfs computer_b /mnt/PC_b
    

then copy directly to the mount

  • another option if a and b machines are in the same LAN, to export via NFS data folder from b machine and mount it in a machine
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.