Skip to content

Commit 80fb74b

Browse files
committed
fix(builder): set private key perms to 0600
1 parent 5faa404 commit 80fb74b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • builder/rootfs/bin

builder/rootfs/bin/boot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ function gen_host_keys {
113113
etcd_get sshHostKey > /etc/ssh/ssh_host_key
114114
etcd_get sshHostPubKey > /etc/ssh/ssh_host_key.pub
115115
fi
116+
# set private key permissions to 0600
117+
chmod 0600 /etc/ssh/ssh_host_*key
116118
}
117119

118120
gen_host_keys

0 commit comments

Comments
 (0)