I don't understand your question.
You already found your solution. In /etc/ssh/sshd_config it's set to port 22. If you want it to be 332, then change 22 to 332. However often ports below 1024 are reserved so it might be wiser to set a custom value higher then 1024.
Don't forget to restart the SSH service after changing the config.
If you meant that SSH is set to port 22 in sshd_config but you can reach it via port 332, then I would check your firewall because that is not normal. In that case something is rerouting port 332 to 22.