SSH on to the server
Switch to “root” sudo su .
sudo su
(cd /var/www/mastodon/live && sudo -u mastodon \ RAILS_ENV=production \ PATH=/opt/rbenv/versions/mastodon/bin \ bin/tootctl accounts modify _USERNAME_ --reset-password)