I want to connect to my computer(local) behind NAT through 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 public server I can verify that tunnel is working by: ssh -p 8000 localhost Which opens ssh on local computer.
I am suspecting wrong that public server should act as transparent proxy? Or how to make it working like that.