While you cannot directly camp on the sand in San Diego, there are beach campgrounds nearby that offer tent camping with ocean views. Some popular options include:
Keep in mind that these campgrounds are very popular, so it's essential to reserve your spot in advance. Visit the San Diego beach camping page for more information and options.