File transfer over double SSH?

Soldato
Joined
26 Aug 2006
Posts
9,726
Location
62.156684,-49.781113
Would like to get a .iso file from the file server inside the department, but it's hidden to the outside world. I can SSH into the gateway server, then from that SSH to the file server, but how can I transfer the file then back to my computer?
 
Can you copy the file from the file server to the gateway server? If so then sftp the file from there to your pc.
 
No, there's limits on that so people don't use it as a file dump. The file server has the unrestricted /tmp which gets wiped on reboot.
 
Use scp to copy the file to the middleman host's tmp directory, then ssh into it and scp it to its final destination.

EDIT: Or are you talking more along the lines of ssh tunneling so that the middleman redirects your traffic through an ssh tunnel?
 
Yeah, a direct path between me and the destination, without having to use the storage on the middleman to copy the file twice.
 
One way I can think to do it is by mounting your computer as an sshfs volume in your home directory on the middleman. You'd scp the .iso into that directory which would then be transparently set to your disk.

It sorta depends on the middleman allowing you to use filesystems in userspace.
 
Vista... :)

My Arch box is currently headless, so that would add another degree of complexity if I were to use that!
 
SSH into the gateway then under that session forward port 22 from the machine the ISO is on to your local machine. Then SCP it from localhost:someportyouforwardedto
 
How do I forward port 22 when I have no control over the other two machines? This is getting complicated, yet there might only be one command...
 
This explains it better than i can be bothered at this time on a sunday :p

http://www.ssh.com/support/documentation/online/ssh/adminguide/32/Port_Forwarding.html

It's less obvious as you're then running another SSH/SFTP session over the forwarded port, but the principle remains the same.

EDIT: you may not have permissions to do what i've proposed :(

(Surely at this stage it's going to be quicker to nip in on monday with a blank cd? :p)

EDIT2: Would you be able to initiate an outgoing SSH session from the machine with the ISO on to a machine of your own and do the file transfer that way?
 
Last edited:
I was hoping to be able to swipe multiple .iso files from MSDNAA while I'm still registered in the department. Might have to just take a box of blanks and spend a while there...

Can't use an external as they'll cry if I plug it in without being electrical tested.
 
Can't use an external as they'll cry if I plug it in without being electrical tested.

Ouch. My uni sort of has a "if i didn't see it, it didn't happen" approach. In fact over with the music lot, if they tried to stop untested stuff being plugged in no one would get anywhere (think peoples personal amps/keyboards etc)

Do you not have direct access to the MSDNAA website and just download them? Alternatively, depending on what you want you might be able to get away with just getting the stuff from dreamspark -

https://downloads.channel8.msdn.com/

You'll need either an ISIC number or Athens username/password.
 
It's a Vista image I want mainly, so not on dreamspark. Never been able to login to the MSDNAA website, guessing they've not put a copy of all our accounts on there. They just direct us to the file server on the technical pages.
 
Ah well, blank discs are your best bet i think. At least you get access to it, our uni has an MSDNAA partnership, but won't let us at any of the resources (ok they occasionally dish out copies of MS Visual Studio but that hardly counts)

I'm going to get myself a technet subscription, it'll make life a lot easier.
 
Back
Top Bottom