yeah eithe break it loose on the car if that doesn't work you may need to use either a wrench or strut socket on the top of it to hold the shaft while you break the nut loose with a wrench. something like this
you could also use an impact gun to zip the nut off the old shock