Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SSH authentication key API to enable OS shell access #131

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

agners
Copy link
Member

@agners agners commented Mar 15, 2023

This allows to add SSH public keys to authenticate with the SSH daemon running on Home Assistant OS port 22222.

Example usage:

busctl call io.hass.os /io/hass/os/System io.hass.os.System AddSSHAuthKey s "<key>"
busctl call io.hass.os /io/hass/os/System io.hass.os.System ClearSSHAuthKeys

Note on security: Since the OS Agent is running on the system bus, root access is assumed anyways. APIs such as systemd allow to execute arbitrary scripts with root rights anyways. So this should not add additional attack surface.

@pvizeli pvizeli merged commit a703490 into home-assistant:main Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants