A rigid endoscope includes an imaging module and a hermetic shell for containing the imaging module. A connecting line is contained in the hermetic shell, and has first and second ends. The first end is connected to the imaging module. A receiving opening is formed in the hermetic shell. A female tapered surface is formed inside the receiving opening. A sealed terminal device is connected electrically with the second end of the connecting line, for hermetically closing the receiving opening. A male tapered surface is formed on the sealed terminal device, for retaining the sealed terminal device in the receiving opening by engagement with the female tapered surface, to keep the hermetic shell air-tight. Preferably, the male and female tapered surfaces are attached together by laser welding. Also, the sealed terminal device includes a lead-through conductor.