A teacher who left scratches on the back of a student during sex and used other pupils as lookouts will now head to prison.