Commit 2440f28
create missing ed25519 ssh host key on startupt (RedpointArchive#59)
* handle dynamically new sshd key types
After some updates /usr/sbin/sshd-gen-keys-start produces more keys than before. It checks for existing ones and produces only the missing ones. This is necessary to support newer sshd protocolls. 45-phabricator-ssh script is now updated to dynamically generate missing key types and copy the new ones to PHABRICATOR_HOST_KEYS_PATH. Additionally the loaded keys from PHABRICATOR_HOST_KEYS_PATH are ensured to have correct file rights.
In the current situation additional support for ed25519 key type is added.
* fix ssh host key copy statement
fix:
cp: cannot stat '/etc/ssh/ssh_host__key': No such file or directory
cp: cannot stat '/etc/ssh/ssh_host__key.pub': No such file or directory1 parent 8e753c8 commit 2440f28
1 file changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 23 | + | |
| 24 | + | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
| |||
0 commit comments