If you’ve forgotten your n8n user password and cannot access your instance, you won’t be able to use the “Forgot Password” feature unless SMTP is properly configured. If SMTP is not set up, you’ll need to reset the user data manually using the browser terminal.
Access your VPS through a browser terminal:
Run the following command to reset user data:
docker exec -u node root-n8n-1 n8n user-management:reset
After the reset is complete, restart the container:
docker restart root-n8n-1
Once restarted, you’ll be prompted to create a new admin account when you access the n8n web interface.
Note: This process will delete existing users and allow you to set up a new account from scratch. It won’t affect your workflows or execution data.