The simplest way is to do what my city (Missoula) did years ago and make the public transportation zero fare for everyone. No more tickets, no more swiping cards, no more concern over who "doesn't deserve" to ride a public resource. This succeeded so well they've even upgraded a number of their buses to be zero-emission as well.