Hello,
for security reasons it would be better to avoid this .
It is highly recommended to not allow access from Internet even if using SSH.
However, you need to check your configuration under line vty
use
show run | begin line vty
Check if there is an access-class command applied ( this is typical setup with an ACL like 23 that speciifies the internal LAN only)
either remove the command or add to the specified acl a line like
access-list 23 permit any
Do not allow telnet use
transport input ssh
on the line vty
Hope to help
Giuseppe