Grow your "soft skills". Don't worry about the technical stuff. You've already got that.
Get a degree in business management, leadership, finance, etc. something with a business heavy emphasis, and organizational administration skills. Bachelors degree is fine, doesn't have to be MBA. You can even start with Associate degree in business from local community college for like $100 per credit hour, and go from there.
Seriously. If you want to be CTO of anything larger than a very small start up, then this is the path.
If you want to remain a technician for your career, then what you really want to be is an architect (solutions architect, software architect, etc), or an IT manager, software manager, IT Director, etc. But if you want to be CTO -- a business executive executive -- then you need soft skills.
Or, alternately, spend 15-30 years in industry, have good luck, grow your people skills, read a lot of books, and maybe you'll get there.