A preliminary magnitude 6.0 earthquake struck off the southern coast of Oregon, the U.S. Geological Survey said.