Gobernador Horacio Guzmán International Airport, San Salvador de Jujuy: JUJ is the sensible flight airport, but it is not close to Humahuaca. Go first into San Salvador de Jujuy’s bus terminal, then take a northbound bus toward La Quiaca that stops in Humahuaca; allow roughly 3½–4½ hours airport-to-town including the airport transfer and connection. Recent route estimates put the full public-transport journey around AR$17,000, but Argentine fares move fast—check locally rather than treating that as a fixed quote. A private car is faster, about 3 hours, but poor value for a solo traveler.
San Salvador de Jujuy bus terminal: This is the real gateway. Frequent buses on the RN9/Quebrada corridor run north to Humahuaca, generally 2 hr 20 min–2 hr 30 min; take a service continuing toward La Quiaca. Buy at the terminal or online when schedules permit, and leave slack: delays are normal. This is better than trying to arrange an expensive airport-to-Humahuaca taxi.
Martín Miguel de Güemes International Airport, Salta: Use SLA only if its flight schedule is much better. Transfer from the airport to Salta’s Terminal de Ómnibus, then take a northbound through-bus if one is running early enough; the advertised Humahuaca–Salta bus time is about 5½ hours, before the airport transfer. If the through service is late or inconvenient, route via San Salvador de Jujuy instead. Expect this to consume most of a day, not a quick transfer.