liked
or respected, 2 very different things
It is only natural that everyone wants to be liked, but as an instructor it is more important to be respected for your knowledge and your experience in your field that you can bring to your students
As humans we all want to be liked. As an instructor we are no different, however, we need to recognize that being liked as an instructor is not the same as being respected and not necessarily the best way to lead a class.
Once you earn you students respect for your knowledge and experience, they will eventually get to like you for your style of teaching and willingness to share your knowledge and expertise.