We put a tall sisal scratching post right next to the arm of the sofa she loved, and rubbed a bit of catnip on it. She switched to the post within a week because it was right where she wanted to scratch anyway. Covering the sofa corner with a throw for a while helped too, so the old spot wasn't as appealing.
Double-sided tape on the corners worked for us — cats hate the sticky feeling, so she stopped scratching there within days. We also made sure she had a scratching post in every room, not just one in the corner. Once she had good options everywhere, the furniture lost its appeal.
We put a cardboard scratcher near the sofa and sprinkled catnip on it — our cat took to it straight away. The trick was putting it exactly where she was already scratching. We also trim her claws regularly, which helps limit the damage when she does have a go at the furniture.
We tried a scratching mat that sticks to the sofa arm and it worked well — she scratches the mat instead of the fabric. We also give her a treat every time she uses her post, so she's learning that the post is the good choice. It took a couple of weeks, but she's mostly using the post now.