4
1
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 :)
Well, first solution was already obvious to me, but I don't have public IP on my router ... about the second solution - I'm now about to try it out, so I'll report it back - but I'd like to make something clear to me - is it possible to communicate from A to C using UPnP or NAT-PMP without any public server I have access to ?... and honestly the third solutions seems the most attractive to me, so I can't wait to try it out :) – jirislav – 2015-10-13T14:22:25.490