I have a home server running Ubuntu 18.04 that hosts some private services. For access from the outside world, I have a domain that points through my router at my home server. This way I can access webservices, as well as SSH from anywhere, which works fine.
When I am at home I would like to use the same domain address to login to my server. For the webservices this works. However, I cannot login through SSH from my internal network using the domain. I get the following message:
ssh: connect to host xyz.abc.com port 22: Connection refused
In the interal network I can only connect with SSH if I use the internal IP address of the server.
Do I have to set special configurations for SSH somewhere to make this work?