mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-02-23 15:54:14 +01:00
Merge branch 'authorized_keys' into 'main'
always create an empty /root/.ssh/authorized_keys with correct permissions See merge request systemrescue/systemrescue-sources!271
This commit is contained in:
commit
b562441a90
14
airootfs/etc/tmpfiles.d/ssh_authorized_keys.conf
Normal file
14
airootfs/etc/tmpfiles.d/ssh_authorized_keys.conf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# create an empty /root/.ssh/authorized_keys file with correct permissions
|
||||
# this makes adding a key easier since the correct permissions are already set
|
||||
#
|
||||
# this builds upon /usr/lib/tmpfiles.d/provision.conf
|
||||
# and supports adding entries via https://systemd.io/CREDENTIALS/
|
||||
#
|
||||
# See tmpfiles.d(5) for details
|
||||
#
|
||||
|
||||
# Provision SSH key for root
|
||||
d- /root :0700 root :root -
|
||||
d- /root/.ssh :0700 root :root -
|
||||
f /root/.ssh/authorized_keys :0600 root :root -
|
||||
w+^ /root/.ssh/authorized_keys :0600 root :root - ssh.authorized_keys.root
|
||||
Loading…
Reference in a new issue