diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-08-31 21:28:28 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-08-31 22:39:58 +0200 |
commit | bb16d1f1bf210d0ac6f92fa5601a60e3639cbfb9 (patch) | |
tree | 5460a305e57851cb62a21ed702b82275586005b8 /services/sshd_keygen.in | |
parent | f39aba8aa382eecc0021485e03760e6713558fc8 (diff) |
Add service files for OpenSSH server
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'services/sshd_keygen.in')
-rw-r--r-- | services/sshd_keygen.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/services/sshd_keygen.in b/services/sshd_keygen.in new file mode 100644 index 0000000..6425e63 --- /dev/null +++ b/services/sshd_keygen.in @@ -0,0 +1,14 @@ +description "OpenSSH server - generate host keys" +type wait +target boot +after network +tty /dev/null +exec { + mkdir -p "@ETCPATH@/ssh/" + + ssh-keygen -f "@ETCPATH@/ssh/host_rsa_key" -N "" -t rsa + ssh-keygen -f "@ETCPATH@/ssh/host_ecdsa_key" -N "" -t ecdsa + ssh-keygen -f "@ETCPATH@/ssh/host_ed25519_key" -N "" -t ed25519 + + service disable sshd_keygen +} |