I want to connect to my computer(local) behind NAT through a public accessible server(public).
On local:
ssh -g -R 8000:localhost:22 user@public
Then on public:
ssh -p 8000 user@public
But I am getting error: Connection refused.
When I login to the public server, I can verify that the tunnel is working by:
ssh -p 8000 localhost
Which opens ssh on the local computer.
Am I suspecting something wrong that the public server should act as transparent proxy? Or how to make it work like that.