You don't need to know the students' passwords (and in fact, you MUST NOT). All you have to do is to go to your course, as teacher, and go to some place where you can see a list of the names of your students. For example, if the People block is available, click on Participants, then in the list of your students, click on one student's name, then click Log in as button.
See attached. Joseph

