I know this question has been asked many times but I could not get it running so I decided to ask it here. I have a Raspberry PI running on my local network which I can easily SSH it through my macbook, using the following code:
However for external connection I use the public IP instead such as:
But I get the following error:
ssh: connect to host 213.xx.xx.x port 22: Operation timed out
On my router I set up port forwarding, for service SSH from and to port 22 based on the Raspberry's local IP address.
Is the commands and setting correct? obviously SSH is enabled on Raspberry PI as I can SSH it locally. But is there anything else I need to do on it prior the connection?