How do I remove the power steering line in order to replace it?

I’ve been trying to remove the power steering line because of a leak. There is a nut at the end that is in a very confined space. There is barely any room to turn it. Any steps to make it easier?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0