Welcome to nginx! page after fresh installation on raspberry pi 4 8GB

It might be that LetsEncrypt is stuck trying to do its thing. I think it has to finish before you get access. Not sure how you debug that, but I know it’s possible to be locked out if you try too many initialisations.

I’d try

ps auxf

first, to see what’s running. Run that in a new shell from a new connection, if the existing one hasn’t come back to the prompt.