I have configured my desktop Ubuntu with sshd and I'm testing that I can log in through a public IP from my Mac. When logging through ssh, the first time works perfectly, but as soon as I close the ssh session and try to start it again it times out, and doesn't work until some minutes have passed. If I try this through the private IP, there's no problem.
Any idea on what's wrong?
Also, if I have an active connection through the public IP and I try port forwarding through ssh on a different terminal session, it also times out. Could it be that the public IP doesn't accept multiple connections at the same time?