Ghana survived a difficult away fixture against Morocco in Rabat to seal their place in next year's 2013 African Youth Championship.
The Black Satellites qualify on a 5-4 aggregate scoreline despite losing the game on Sunday 3-1. Ghana won the first leg 4-1 a fortnight ago.
After a taking a 2-0 first half lead, Francis Narh pulled one back for Maxwell Konadu's side in the second half.
As the game headed into the finals minutes, the Atlas Cubs were awarded a penalty which they converted.
Buoyed on by the late goal, the Moroccans pushed to score again and send the tie into penalties but despite playing 10 minutes of added time, Ghana's team stood resolute to hold on and pick their spot at the Championship to be hosted by Algeria.
Ghana and six other teams will make it from the qualifiers and join hosts, Algeria, in the finals next year.