7
2
I'm doing some work where I need to pivot off a machine using proxychains so I'm connecting to a system and binding a local port like so...
ssh -f -N -D 9000 user@host.com
… which returns me back to my command prompt after opening the connection. I can then use something like proxychains to run commands through host.com
.
My question is: How can I connect/interact with that same session so I can get a remote shell on host.com? The way I'm doing it now is opening up another ssh session with a simple ssh user@host.com
, but I'm thinking there has to be a way to just utilize that first session that I opened.
This is going to start another new SSH session which will also try to do port-forwarding to the local machine's port
9000
. It will give a warning about being unable to bind to port 9000 if there is already another SSH session open which I believe is what the OP's use case looks like. – Tuxdude – 2013-03-02T19:23:48.817