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#
- Open the terminal within Home Assistant or via a console.
- Edit the authorized keys file:
nano /data/.ssh/authorized_keys- Paste your public SSH key (e.g., from your Mac Studio or MacBook Air) into the file.
- Save and exit (
Ctrl+O,Enter,Ctrl+X).
Ensure the SSH add-on configuration has the correct port (usually
22or2222) and that the “SFTP” or “SSH” services are started in the add-on’s dashboard.
2. Cloudflare Tunnel#
- Add Repo:
https://github.com/brenner-tobias/ha-addons - Install: Cloudflared Add-on.
- Configure: Add your tunnel token/link and start.