LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux - merge two separate ssh sessions (https://www.linuxquestions.org/questions/linux-newbie-8/linux-merge-two-separate-ssh-sessions-4175539239/)

anirvana 04-09-2015 12:51 PM

Linux - merge two separate ssh sessions
 
Hi all,

Would love some advice about how to get a solution here.

Goal - join two separate ssh sessions together. I want to see if keys used to login to a bastion host can be different than keys used to login to server from bastion.

Scenario - I will login to a bastion host using ssh and my keys from my machine. The bastion host will then login to the actual server on my behalf - using a different set of keys. The ssh session from my machine to the bastion host and from the bastion host to the server now needs to be connected, for me to feel as if a transparent SSH proxy is just forwarding commands.

I have read up a bit on ssh proxies but it seems like this is not implemented right off the bat. I have read - http://en.wikibooks.org/wiki/OpenSSH...and_Jump_Hosts , I have also looked at screen sessions - but am not sure how to "merge" two ssh screen sessions together.

Any advice will be very helpful.

Thank you.

unSpawn 04-09-2015 05:43 PM

Not sure how to put this but you won't be "merging" any (screen) sessions: establish the first tunnel connection to the first host, then establish a second connection via that first host tunnel to the second host.


All times are GMT -5. The time now is 11:36 PM.