progfiguration.localhost.authorized_keys¶
Working with authorized keys
Functions¶
|
Get the authorized_keys contents for a user |
|
Add new lines to an authorized_keys file |
Module Contents¶
- progfiguration.localhost.authorized_keys.get(localhost: progfiguration.localhost.LocalhostLinux, user: str) → List[str]¶
Get the authorized_keys contents for a user
- progfiguration.localhost.authorized_keys.add_idempotently(localhost: progfiguration.localhost.LocalhostLinux, user: str, lines: List[str])¶
Add new lines to an authorized_keys file
Create the file and .ssh directory if necessary