You are not logged in.

#1 2013-06-17 15:31:47

doupod
Member
Registered: 2012-09-06
Posts: 76

Reverse a chained SSH connection ?

Hi,

I need to reverse an opened chained SSH connection to copy files back to my own computer.

I know that when an SSH connection is active, it is possible to do ~ -R port:localhost:port2 to provide a reverse connection to send files back to the machine. But this doesn't seem to work in a chained configuration.

Here's what I have :
My computer === ssh ===> First server === ssh ===> Second server

And I need to scp files from the second server onto my computer.


Ideally, I'd like to have a "one command line" command, without tricks in ssh_config with proxy commands because I want to be able to use this easily on any computer.

Thanks

EDIT : I know ssh -R port:localhost:port1 server1
and ssh -R port1:localhost:port2 server2
but I'm looking for a way to do this once the connection is established.

Last edited by doupod (2013-06-17 15:56:23)

Offline

Board footer

Powered by FluxBB