SSH host behind NAT

Today I solved task of establishing persistent SSH tunnel from NAT-ted host to local machine.

The problem is that Host B is supplied with dynamic IP, so you can't just connect to it.

[A] -X-> [B]
me       target

I decided to reverse the process and force Host B to contact …

more ...