SSH
How to Remotely Connect to a Mac Terminal from a Windows PC with SSH
Windows has shipped a built-in SSH client since 2018, so connecting to your Mac takes one command — no PuTTY required. Covers Remote Login on Ventura and later, finding your IP, and key-based auth.