Off-grid photovoltaic hydrogen production is an effective solution for improving photovoltaic (PV) utilization and obtaining green hydrogen. The main challenge faced by off-grid photovoltaic hydrogen production systems (OGPHPS) is how to deal with the randomness, intermittency, and volatility of PV generation. Therefore, this paper proposes an optimal operation control strategy (OOCS). First, a model of OGPHPS is established, comprising photovoltaics, batteries, and an electrolytic array (ELA). Second, a two-step optimization strategy (TSOS) that integrates both long-term and short-term time scales is proposed. In the first step of TSOS, the day-ahead optimization of the operation state of ELA is conducted according to day-ahead power prediction. A constraint was proposed to balance the operation time of the electrolyzer. In the second step of TSOS, according to the ultra-short time power prediction and the electrolyzer efficiency curve, the rolling optimization of the operating power distribution of ELA is carried out. Through TSOS, PV generation consumption is maximized by ELA, the continuous operational stability of OGPHPS is enhanced, and the lifespan of electrolyzer is extended. Third, to alleviate the influence of instantaneous power fluctuation on the system, an energy management strategy (EMS) for OGPHPS is proposed. Finally, a simulation model of OGPHPS was established, and the simulation results showed that the direct current bus voltage fluctuation was within 3%. Compared to the chain allocation strategy, the OOCS achieves higher hydrogen production under the same solar irradiance conditions. Particularly in low irradiance, OOCS has more sufficient consumption of PV generation and higher hydrogen production efficiency.