Two-goal hero Peter Duffield secured York an FA Cup date against Brentford with a late winner in a pulsating first-round clash with Swansea which ended 2-1 at Bootham Crescent.
The pint-sized striker was completely unmarked when he headed home Graham Potter’s cross from the left two minutes from time to send the Minstermen into the second round.
The Swans thought they had done enough to earn a replay 10 minutes from time when Matt Murphy rose unchallenged to head home Andrew Mumford’s corner.
Duffield had fired City in front after 21 minutes even though Swansea dominated the opening stages. The former Darlington forward rattled home Darren Edmondson’s cross at the near post from just inside the area.
York could have stretched their lead after 56 minutes when John Parkin’s superb 25-yard lob hit the crossbar moments after Duffield had been denied by Roger Freestone.
Parkin had earlier spurned two one-on-ones with Freestone at the end of the first half.
Jamie Thomas had plenty of chances for the Swans but lacked the killer touch in front of goal. He tested Alan Fettis with a stinging volley and should have headed home Mumford’s free-kick after 68 minutes.