Arduino yun SSH not accessible via the internet

Hello guys, so i have uploaded the "consolepixel" example to my yun. And i am able to use it via ssh locally. But i wanted to be able to access on the internet. So, i forwarded the port 22 on my router and tried to access it via the internet using ssh. But i am getting the error "permission denied, please try again" when entering the password. The password works locally but not on the internet. Please help me guys.

When you say "locally" do you mean from another device on your local network?

What do the sshd logs say on the Yun? Likely the logs are located in /var/log.