This post shows how to install TeamViewer remotely via a ssh connection

wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
  • Install the package with sudo dpkg -i teamviewer_amd64.deb.
  • The terminal may show this error
dpkg: error processing package teamviewer (--install):
 dependency problems - leaving unconfigured

If positive, run sudo apt install -fy, then run the above command again.

  • Setup control password sudo teamviewer passwd my_secret_password.
  • Then, you can have teamviewer id in the result of info command teamviewer info.
  • To start teamviewer in startup: sudo systemctl enable teamviewerd.