In this case I knew the CEO from school. The computer science department I studied in offered a couple cross-collaboration classes with the graduate school of business, which is how we met.
I don't have much practical advice here, but my path was to have done good work in the past (reference checks), have an existing connection, and to not be afraid to negotiate hard at the beginning.