I have a really annoying problem with my server, even I couldn't find any search term to google it.
Let me explain it.
on my server I can connect to ssh using with ip address it is ok.
ex : ssh -p2222 ubuntu@xx.xxx.xxx.xx
It is working.
but I cannot login with domain name. SSH connects, it asks for password for user ubuntu but the password doesn't work.
ex : ssh -p2222 ubuntu@domainname.com
It is not working.