1. Home Assistant SSH Configuration#

Add SSH Keys#

To enable passwordless SSH access to your Home Assistant instance, you must have the SSH & Web Terminal add-on installed and Advanced Mode enabled for your user profile.

Configure Authorized Keys#

  1. Open the terminal within Home Assistant or via a console.
  2. Edit the authorized keys file:
nano /data/.ssh/authorized_keys
  1. Paste your public SSH key (e.g., from your Mac Studio or MacBook Air) into the file.
  2. Save and exit (Ctrl+O, Enter, Ctrl+X).

Ensure the SSH add-on configuration has the correct port (usually 22 or 2222) and that the “SFTP” or “SSH” services are started in the add-on’s dashboard.

2. Cloudflare Tunnel#

  1. Add Repo: https://github.com/brenner-tobias/ha-addons
  2. Install: Cloudflared Add-on.
  3. Configure: Add your tunnel token/link and start.