Updated

NEW YORK -- The Pittsburgh Penguins kept their hopes of earning home-ice advantage in the first round of the playoffs alive with a 3-2 overtime win against the New York Rangers at Madison Square Garden on Sunday night.

Center Sidney Crosby scored with 29.5 seconds remaining in overtime when a shot by defenseman Kris Letang bounced off Crosby and past goaltender Henrik Lundqvist.

The Penguins moved to within four points of the Rangers for second place in the Metropolitan and hold a game in hand.

Eric Staal, playing left wing on the third line in the game, scored twice for the Rangers and Lundqvist stopped 29 shots.

Matt Cullen and Phil Kessel, who had the second assist on the game-winner, also scored for the Penguins, who received 25 saves from goaltender Marc-Andre Fleury.

The win is the fifth straight on the road for Pittsburgh.

Staal put the Rangers ahead 1-0 at 4:19 of the first period. He drove the net and, with one hand on his stick, knocked home a pass from Kevin Hayes for his second goal as a member of the Rangers.

Cullen pulled the Penguins even at 1 with 4:11 remaining. Defenseman Trevor Daley fired a waist-high shot that Cullen deflected through Lundqvist's legs then swept across the goal line for his 13th of the season.

Staal's second of the game at 2:07 of the second period gave the Rangers a 2-1 lead. Penguins right winger Bryan Rust failed to control a puck in his own zone, which resulted in Jesper Fast tapping the puck to Staal for a one-timer that beat Fleury over his glove.

Lundqvist was to blame on Kessel's tying goal at 8:36. He flubbed a pass while behind his net, which allowed left winger Carl Hagelin to track it down. Hagelin quickly shot it toward the net and a scrambling Lundqvist made the save while falling. Kessel swooped to the net and stashed home the rebound for his 23rd goal.

NOTES: Penguins LW Chris Kunitz was a game-time decision due to an upper-body injury he sustained Saturday, but he was in the starting lineup. ... Penguins D Olli Maatta (lower body) missed his second consecutive game and is listed as week-to-week. .... Rangers LW Oscar Lindberg was a healthy scratch for an eighth consecutive game. ... Rangers D Dylan McIlrath (knee) missed his 10th game in a row. Coach Alain Vigneault said he hopes to have McIlrath back before next weekend, but there is no guarantee the defenseman will be in the lineup when healthy.