I would use penetrating oil on it repeatedly over the course of several days, and then use a deep socket with and extension.
It looks like that nut is rusting. Whenever you do ANY plumbing work, use solid brass or stainless steel fasteners to avoid problems like these.