The remote Linux computer is in an internal network and has no public IP address. So I installed ngrok.
ngrok tcp 22
ngrok by @i
You are connecting to the wrong destination address. The command should be
ssh myuser@0.tcp.ngrok.io -p36428
Notice the different hostname (ie 0.tcp.ngrok.io
instead of ngrok.com
).
And generally you would want to put the user@hostname
after all the options (eg -p36428
), even though it doesn't generally cause any issues.