I have available these SSH servers/clients:
A - without public IP
B - public IP
C - without public IP
I know, I can establish an SSH connection from A to C as follows:
1) Hook C to B. Doing from C:
ssh -R 10100:localhost:22 B_IP
2) Set port forwarding from A to C using B hook in order to be able of ssh-agent usage on machine A:
ssh -L 5000:localhost:10100 B_IP
3) Now I can use my ssh keys to "directly" access C from A:
ssh -p 5000 localhost
... my point is:
Can I somehow establish new "pure" connection from A to C so that after machine B goes down, I can continue my work?
I think it should be possible as long, as these two computers realise, they already share a connection, or am I wrong?
Thanks for your time & ideas :)