Where is the SSH server? Is it a server on the Internet or server in your local network?

The router doesn’t block any data outgoing, but only incoming.