Hello guys, I'm very new to rasperry pi and these kind of stuffs, I installed a linux operating system on there.
I can ssh to it with local IP, 192.168.1.X. I can install and download stuffs there without any problem. But when I try to use public IP address which is given by my ISP and shared to all my devices in my house. It just can't. I have tried installing no-ip dns on it but it just doesn't work too.
I have never countered this problem before when using digital ocean or linux server hosted by amazon.
Some acronyms and terms in this reply but you should be able to look them up for more detail.
At home you are behind a NAT router.
You would have to setup port forwarding on the router to direct your SSH traffic to your RPi.
However, as soon as you do that you can also expect automated scripts that are run by hackers to find their way to your RPi as well.
Therefore before you do anything like this you should put a number of security measures in place ... at least changing the password of your “pi” account and probably more (fail2ban, port knocking, remove pi account).
Edit: I was writing the above before your reply came in