The options here fall into a few shapes, and choosing the wrong one causes most of the frustration. RustDesk is the close analog to TeamViewer: an agent you install on both machines that connects peer to peer through TCP hole punching and falls back to a relay, with clients on Windows, macOS, Linux, and Android and a rendezvous and relay server you can self-host. Apache Guacamole is a different animal - a clientless HTML5 gateway that brokers RDP, VNC, and SSH to machines behind it, reached from a plain browser. Most of the rest - JumpServer, Teleport, Boundary, Bastillion, ShellHub, and Firezone - are bastion, privileged-access, or zero-trust tools aimed at administering your own fleet rather than supporting a stranger's desktop. For ad hoc support, RustDesk fits; for browser-based access to systems you already administer, Guacamole or one of the bastion tools does.
Whichever you pick, you inherit infrastructure TeamViewer absorbed for you. RustDesk can use its public relay, but the point of switching is usually to run your own rendezvous and relay, which makes DNS, TLS certificates, bandwidth, and availability your responsibility. Guacamole installs as a .war file under a servlet container like Tomcat or Jetty and needs that server maintained and reachable. Expect rougher edges than TeamViewer's polish: less consistent mobile control, weaker remote printing, and a less frictionless way to invite a nontechnical user into a session. Test clipboard, multi-monitor, and reconnect behavior on the operating systems you actually support.
There is no import to run; migration is re-enrollment. TeamViewer IDs, unattended passwords, and account trust relationships do not transfer, so inventory your device groups, saved partner IDs, unattended hosts, and any session reports you must keep, then rebuild them. Deploy the RustDesk client or stand up Guacamole, verify unattended or gateway access after a reboot, and only remove TeamViewer once a fallback window has passed. Export any connection history you need for compliance before closing accounts, because that record rarely maps cleanly into a new tool.