fix(ssh): remove authorized_keys filename for 2.1.0
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
5 files changed
+7
-47
No files matched your search
@@ -138,11 +138,11 @@ environment variables can be espcilitly defined, to consume it during execution
|
||||
> [!IMPORTANT]
|
||||
> To allow consuming environment variables must be set `PermitUserEnvironment yes` in `/etc/ssh/sshd_config`.
|
||||
|
||||
Private and public keys are configured directly using `filename` and `content`. The role writes each key to
|
||||
`~/.ssh/<filename>`. Store private key content encrypted with Ansible Vault.
|
||||
Private keys are configured using `filename` and `content`; the role writes them to `~/.ssh/<filename>` and extracts
|
||||
their public keys to `~/.ssh/<filename>.pub`. Store private key content encrypted with Ansible Vault.
|
||||
|
||||
Entries in `authorized_keys` are also added to `~/.ssh/authorized_keys`, including their optional command and environment
|
||||
settings. Public keys are still automatically extracted from private keys into `~/.ssh/<filename>.pub`.
|
||||
settings.
|
||||
|
||||
```yaml
|
||||
unix_users:
|
||||
@@ -157,13 +157,11 @@ unix_users:
|
||||
StrictHostKeyChecking: "no"
|
||||
UserKnownHostFile: /dev/null
|
||||
authorized_keys:
|
||||
- filename: claire@claire-pc.pub
|
||||
content: ssh-ed25519 AAAAC3NzaC... claire
|
||||
- content: ssh-ed25519 AAAAC3NzaC... claire
|
||||
- command: /usr/local/bin/upload-file.sh
|
||||
envs:
|
||||
- key: SSH_KEY_NAME
|
||||
value: bob@bob-pc
|
||||
filename: bob@bob-pc.pub
|
||||
content: ssh-ed25519 AAAAC3NzaC... bob
|
||||
private_keys:
|
||||
- filename: toor@toor-pc.ed25519.key
|
||||
|
||||
Reference in new issue
Block a user