Allow logging in remotely to Hass.io using SSH.
Setting up an SSH server allows access to your Hass.io folders with any SSH client. It also includes a command-line tool to access the Hass.io API.
Try it out using:
hassio help
Follow these steps to get the add-on installed on your system:
- Navigate in your Home Assistant frontend to Hass.io -> Add-on Store.
- Find the "SSH server" add-on and click it.
- Click on the "INSTALL" button.
To use this add-on, you must have a private/public key to log in. To generate them, follow the instructions for Windows and these for other platforms. It is possible to set a password for login since version 2.0 but for high security use private/public keys.
You can not run both variants at the same time. Enabling login via keys, will disable password login.
- Add a ssh key to
authorized_keys
or set apassword
in the add-on configuration. - Start the add-on.
- Connect to your device using your preferred SSH client and use
root
as the username.
After logging in, you will find yourself in this add-on’s container.
The Home Assistant configuration directory is mounted on the path /config
.
Add-on configuration:
{
"authorized_keys": [
"ssh-rsa AKDJD3839...== my-key"
],
"password": ""
}
Your public keys for the authorized key file. You can authorize multiple keys by adding multiple public keys to the list.
Set a password for login. We do NOT recommend this variant.
- This add-on will not enable you to install packages or do anything as root. This is not working with Hass.io.
Got questions?
You have several options to get them answered:
- The Home Assistant Discord Chat Server.
- The Home Assistant Community Forum.
- Join the Reddit subreddit in /r/homeassistant
In case you've found a bug, please open an issue on our GitHub.