Recently I purchased a new pi, and didn't have a monitor to set it up with so I SSH'd into it using an ethernet cable. I did this 100+ times and randomly it stopped working, and now gives a "connection refused" error every time I try to SSH in.
I have tried reinstalling the OS and putting the SSH file in the boot directory. The SSH file gets deleted but still does not allow me to ssh in.
Any help would be greatly appreciated, thanks!