To be a good math teacher, you need to be knowledgeable about the subject and able to explain concepts clearly, be patient and understanding of different learning styles, and provide opportunities for students to practice and apply what they have learned.
For those who need more details
To be a good math teacher, it is important to have a deep understanding of mathematical concepts and the ability to clearly convey those concepts to students. However, being knowledgeable in math is not the only thing that makes a teacher great. Along with teaching the subject, a math teacher needs to have the ability to inspire, support, encourage, and engage the students.
Here are some tips that can help someone become a successful math teacher:

Know your students: Understanding your student’s level of knowledge, their learning styles, and their interests will guide your approach and help you design lessons that focus on their specific needs. “Teaching is about building a relationship with your students. If you show them you care, they will do anything for you.” – Murray Siegel

Encourage creativity and critical thinking: Math is not just about memorizing formulas and solving equations. It is about encouraging students to be creative and helping them understand how to apply the concepts they learn in real life situations. “It is not enough to teach students how to solve problems. We need to show them the beauty and power of mathematics, and its relevance to the world around them.” – Conrad Wolfram

Use technology: Technology can be an effective tool to engage students and make learning more exciting. Online resources such as math games, simulations, and quizzes can help supplement classroom instruction and provide opportunities for students to practice what they have learned. “Technology is not a replacement for good teaching. It’s a supplement that can enhance the learning experience.” – Wendy Petti

Be patient and understanding: Each student learns at their own pace, and it’s essential to be patient and understanding when teaching math. “Every mistake a student makes is not a failure but rather a chance to learn and to grow.” – Jo Boaler

Encourage participation and collaboration: Encouraging active participation and collaboration among students can be an effective tool to promote learning and engagement within the classroom. It not only encourages students to work in teams but also builds teamwork and social skills essential in the real world.
Here is a table that summarizes the tips discussed in this answer:
Tips for the Good Math Teacher 

Know your students 
Encourage creativity and critical thinking 
Use technology 
Be patient and understanding 
Encourage participation and collaboration 
In conclusion, being a successful math teacher requires more than just having a deep understanding of the subject. It includes building positive relationships with the students, encouraging creativity, and critical thinking, incorporating technology, being patient and understanding, and promoting class participation and collaboration. As a famous quote by Albert Einstein states, “It is the supreme art of the teacher to awaken joy in creative expression and knowledge.”
In this video, you may find the answer to “How can I be a good math teacher?”
Dan Finkel, a mathematician and educator, argues that traditional math education results in a lack of real thinking and understanding. To combat this, he offers five principles, starting with asking questions rather than just giving answers. He emphasizes teaching perseverance and curiosity through activities that encourage observation and questioning. Fostering conversations and debates in the classroom also empowers students to participate in mathematical thinking. Lastly, he encourages students to push the boundaries of mathematical thinking and to approach it with creativity and exploration, rather than just passive rulefollowing, in order to equip the next generation with the courage, curiosity, and creativity to meet the future.
I found further information on the Internet
11 Ways to be a Great Math Teacher:
 Setting Realistic Standards.
 Explain Concepts Clearly.
 Conduct Assessments Frequently.
 Model Your Teaching.
 Emphasize on Teamwork.
 Encourage Experiential Learning.
 Let The Students Teach.
 Emphasize Behavior Management.
11 Ways to be a Great Math Teacher:
5 Important Characteristics to Become a Good Math Teacher
 Knowledge of Mathematics A successful math teacher has an extensive knowledge of mathematics.
The qualities of a good math teacher are many and varied. However, some of the most important qualities are the ability to inspire, be patient, and be intelligent. A good teacher can best teach students by being an excellent role model. They must also be able to engage their students in learning and make the material interesting.
From creating a supportive learning atmosphere to applying what you’ve learned in your own education, there are a few key strategies to becoming a successful math teacher. Many of these skills are learned on the path to becoming a math teacher, a stable career that is expected to experience some growth in the coming years.
In addition, people ask
 Use handson learning methods.
 Incorporate visuals.
 Integrate math games into math lessons.
 Connect math concepts to everyday life.
 Allow students to explain their reasoning.
 Give frequent feedback and direction.
 Reward progress.
 Personalize lessons.
 Great Communicator.
 Fair and Respectful.
 Develops Relationships with Students.
 Uses RealWorld Examples Within Learning.
 Knows How to Discipline.
 Stays Balanced and Organized.
 Communicates High Expectations.
 Makes Decisions Based on Data.