To log in to Moodle as an external teacher, you need a user id on the central UHH-Login service provided by the University of Hamburg.
In order to participate in or create a course in Moodle, contact your teaching assignment management to order a user ID for lecturers. Visit the website of the Regional Computer Center (RRZ) and follow their instruction: https://www.rrz.uni-hamburg.de/en/kennung-authentifizierung/kennung-beantragen/kennungen.html