summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-04-17 21:56:41 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-04-18 10:53:20 +0200
commit778abdbfa132e31bb5abcbf684e07524e99c01ad (patch)
tree161b38307df20717989fb48d0e28f28afda0e6fa /docs
parentdocs: Add note on packages produced by mkosi builds (diff)
downloadsystemd-778abdbfa132e31bb5abcbf684e07524e99c01ad.tar.xz
systemd-778abdbfa132e31bb5abcbf684e07524e99c01ad.zip
doc: fix .ssh credential examples
Let's create the .ssh dir with the right perms first. Suggested by @gcb. Fixes: #28172
Diffstat (limited to 'docs')
-rw-r--r--docs/CREDENTIALS.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/CREDENTIALS.md b/docs/CREDENTIALS.md
index 070ef42cf0..9b27b541cf 100644
--- a/docs/CREDENTIALS.md
+++ b/docs/CREDENTIALS.md
@@ -451,7 +451,7 @@ qemu-system-x86_64 \
-device scsi-hd,drive=hd,bootindex=1 \
-device vhost-vsock-pci,id=vhost-vsock-pci0,guest-cid=42 \
-smbios type=11,value=io.systemd.credential:vmm.notify_socket=vsock:2:1234 \
- -smbios type=11,value=io.systemd.credential.binary:tmpfiles.extra=$(echo "f~ /root/.ssh/authorized_keys 600 root root - $(ssh-add -L | base64 -w 0)" | base64 -w 0)
+ -smbios type=11,value=io.systemd.credential.binary:tmpfiles.extra=$(echo -e "d /root/.ssh 0750 root root -\nf~ /root/.ssh/authorized_keys 0600 root root - $(ssh-add -L | base64 -w 0)" | base64 -w 0)
```
A process on the host can listen for the notification, for example: