I have a Debian device on my local network (Raspberry Pi, but that's not important) and I wish to SSH from a Windows PC. When I try to connect to it using the local IP, everything works fine. But I wish to connect to it from outside also, so I setup a Dynamic DNS, port forward and I turned off router firewall. SSH is up and running, since I can access it locally and openssh-server is already installed.
When I try to connect using the global IP, I get a "Connection refused" error.
Why I can't connect from outside?