Edinburgh made it three wins from three as they battled past the Ospreys 20-9 at Murrayfield on Friday.
The Ospreys opened up an early 6-0 lead thanks to two Sam Davies penalties, but Edinburgh then hit back with a try from Phil Burleigh just before the break.
He went over with the visitors down to 14 after Nicky Smith was sin-binned for pulling down a maul, with Greig Tonks converting from the touchline to make it 7-6 to Edinburgh.
The Ospreys led at the half though, Davies slotting another penalty just before the break, but that would be it for the Welsh side.
A Tonks penalty early in the second half made it 10-9 to the hosts, and their task got easier when Olly Cracknell was the second Osprey sin-binned, for a late tackle.
Tonks knocked over the resulting penalty to push the lead out to four before a late try for Jon Andress sealed the win, converted by Jack Cuthbert.
The win takes Edinburgh temporarily top of the Pro 12, while the Ospreys are still winless after three games.
Tries: Burleigh, Andress
Cons: Tonks, Cuthbert
Pens: Tonks 2
Pens: Davies 3
Yellow Cards: Smith, Cracknell
Edinburgh: 15 Greig Tonks, 14 Tom Brown, 13 Dean Chris Dean, 12 Andries Strauss, 11 Damien Hoyland, 10 Phil Burleigh, 9 Sean Kennedy, 8 Cornell du Preez, 7 Roddy Grant, 6 Mike Coman (c), 5 Fraser Mckenzie, 4 Anton Bresler, 3 John Andress, 2 Neil Cochrane, 1 Rory Sutherland
Replacements: 16 George Turner, 17 Allan Dell, 18 Simon Berghan, 19 Alex Toolis, 20 Hamish Watson, 21 Nathan Fowles, 22 James Johnstone, 23 Jack Cuthbert
Ospreys: 15 Dan Evans, 14 Hanno Dirksen, 13 Jonathan Spratt, 12 Ben John, 11 Dafydd Howells, 10 Sam Davies, 9 Brendon Leonard, 8 Dan Baker, 7 Sam Underhill, 6 Joe Bearman, 5 Rory Thornton, 4 Lloyd Ashley (c), 3 Dmitri Arhip, 2 Sam Parry, 1 Nicky Smith
Replacements: 16 Scott Otten, 17 Ryan Bevington, 18 Cai Griffiths, 19 Rynier Bernardo, 20 Olly Cracknell, 21 Ifereimi Boladau, 22 Tom Habberfield, 23 Aled Jenkins
Referee: Andy Brace (Ireland)
Assistant Referees: Sam Grove-Whiate, Stephen Ward (Scotland)
TMO: Iain Ramage (Scotland)