SSH "connection refused" - My Cloud gen2 (2.31.149)

I don’t use WD stock system anymore. But I can give you some guidance. If you still have SSH access, you can go to /mnt/HD/HD_a2/Nas_Prog (something similar like this), open the folder WDMyCloud_UtilsUpdate_30 and run ./remove.sh $(pwd).