Alleged White House shooter Oscar Ramiro Ortega-Hernandez pleaded not guilty Tuesday to a charge of attempting to assassinate the president and 16 related crimes.

Ortega-Hernandez, 21, of Idaho Falls, Idaho, appeared briefly in U.S. District Court in Washington. After one of his lawyers entered the pleas for him, Ortega-Hernandez was escorted back to jail, where he is being held without bond pending a trial.

He allegedly fired rifle shots at the White House from about 750 yards away on the night of Nov. 11. Even though President Obama was in San Diego at the time of the incident, Ortega-Hernandez has been charged with attempted assassination.

He also has been charged with three counts each of assaulting a federal officer, assault with a dangerous weapon and possessing a gun during a violent crime. Those counts relate to three members of the Secret Service who were in the line of fire on the White House grounds on the night of Nov. 11, authorities said.

The federal grand jury that indicted him on those counts last week also charged him with five counts of using a firearm during a violent crime, one count of illegally transporting a gun across state lines and one count of damaging federal property.

Read more: The Post’s Crime coverage