-
Notifications
You must be signed in to change notification settings - Fork 9
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
sshkey
customization is ignored
#142
Comments
A workaround is to use the [[customizations.directories]]
path = "/home/testuser/.ssh"
mode = "0700"
[[customizations.files]]
path = "/home/testuser/.ssh/authorized_keys"
mode = "0600"
data = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKNh/u8oWHfYwr01X8G8ijSC3hPfKfLpK8MISxg2mq1O [email protected]" |
@FrostyX, after a chat with @achilleas-k (see the linked PR) it turns out that the correct way to do this is by using the [[customizations.user]]
name = "testuser"
keys = ["ssh-edsa XXXX xxx"] Is thus the way SSH keys could be added to users. |
Thank you both. I will test once I can and reopen if necessary. |
I don't think this works. Maybe I am looking in a wrong place, but |
I mixed things up. The [[customizations.user]]
name = "testuser"
key = "ssh-edsa XXXX xxx" |
Thank you very much, this one works. |
The documented
sshkey
customization is not plumbed through inimages
. The struct exists but nothing seems to be generated on it.The text was updated successfully, but these errors were encountered: