Best market/location for a future in tech companies?

I am guessing San Francisco would be a great location if I wanted to work for a tech company in the future. Does anyone know of any details or specifics about the best way to get a higher level position at, say, Google or Apple or Space X? I already have about 6 years of public experience and planning on getting into B4 in the next year or so once I complete the exam. Would a company like Space X look for more of a technology background, engineering, or manufacturing for accounting seniors and managers or do you think it doesn't really matter? I can look at job descriptions, but had a hard time finding the exact ones I'm interested in and just checking in here to see if anyone is familiar with a sure fire way to pursue this path.