So I'm pretty new to Ubuntu. Running 22.xx whatever the latest version of ubuntu is and was fucking around with permissions. WELL I pasted something into my terminal as the root user:
sudo chown -R www-data:www-data *
and can now no longer even connect to my server via PuTTy. I think I fucked up big time. Any tips (other than reinstalling image)?