A strong earthquake shook the northern San Francisco Bay Area, causing damage and rattling nerves early this morning.