diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-10-02 01:13:25 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-10-02 01:13:25 +0000 |
| commit | f38978765535e8c844371dbcd8e2ae1ace135e08 (patch) | |
| tree | 8f6f73cc41ec340be45959fae67da4c6abec1e21 /sshd-keygen@.service | |
| parent | 151bd95e0af0e9382ca9065b0d6cc6d62f1ac794 (diff) | |
automatic import of opensshopeneuler20.03
Diffstat (limited to 'sshd-keygen@.service')
| -rw-r--r-- | sshd-keygen@.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sshd-keygen@.service b/sshd-keygen@.service new file mode 100644 index 0000000..f27f729 --- /dev/null +++ b/sshd-keygen@.service @@ -0,0 +1,11 @@ +[Unit] +Description=OpenSSH %i Server Key Generation +ConditionFileNotEmpty=|!/etc/ssh/ssh_host_%i_key + +[Service] +Type=oneshot +EnvironmentFile=-/etc/sysconfig/sshd +ExecStart=/usr/libexec/openssh/sshd-keygen %i + +[Install] +WantedBy=sshd-keygen.target |
