Answer: Only by example. The child must constantly see such examples around him. There are no other ways. No matter what you tell him, no matter what you advise him, it will not yield results. His environment should give him only positive examples so that he absorbs them from a young age.
Question: What if he is raised in a single-parent family? If I raise my son alone and he does not see an example of a father.
Answer: Then you need to have one or even several men around who would set an example for him, with whom he would be in contact and who would form a society around him.
From KabTV’s “Fundamentals of Kabbalah” 5/24/20