I recently got my server and I did a major noob mistake. I forgot to allow my modified ssh port on ufw. Now I can't ssh into it. It's a remote dedicated server. So that means I have to ask the host to allow it?
Ordinarally Raja would have the reason. If it is on amazon cloud, you could set up another server, and attach the other server storage and change the config by hand. You have to know the provider features. Perhaps there are ways. Many "dedicated servers" aren't trully that. Ask for your host support.
Or hire a whitehat pentester to try to do so if it is legal on your country. On my country is legal, as long as the servers is really yours.