Sometimes you may have forgotten your teamviewer password and can not connect remotely to your pc.

But if you still have the possibility to connect through ssh you may change the password.

The command is simple:

sudo teamviewer --passwd newpassword

where newpassword is your new password.

If still having problems you may restart the service:

sudo systemctl restart teamviewerd

That was simple !