Update : after changing the password to a shorter one, I can now use it to login via SSH and sudo. But the 504 error on the user portal remains.
Update : after changing the password to a shorter one, I can now use it to login via SSH and sudo. But the 504 error on the user portal remains.