Hi. Both suggested phrases work well for the cited context, but I would personally say; All students whish to to have good education which could be achived only by good teachers. Notice, by should be used for both alternatives.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.