Use the following commands:
git reset --hard <commit-hash>
git push -f origin master
Here assuming origin as your remote and master as your branch.
However, you should avoid doing this if anyone else is working with your remote repository and has pulled your changes. In that case, it would be better to revert the commits that you don't want, then push as normal.
Since from your question it's clear that you have already used git reset --hard to reset your master branch, you may need to start by using git reset --hard ORIG_HEAD to move your branch back to where it was before.
I hope this will help to reset the remote to a certain commit.