SHA256
1
0
forked from pool/openssh
openssh/sshd-gen-keys-start
Hans Petter Jansson 34c2098366 Accepting request 914000 from home:kukuk:tiu
- sshd-gen-keys-start:
  - only source sysconfig file if it exists.
  - create /etc/ssh if it does not exists.
  Required for image based installation/updates.

OBS-URL: https://build.opensuse.org/request/show/914000
OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=234
2021-09-01 18:03:45 +00:00

10 lines
225 B
Bash

#!/bin/sh
test -f /etc/sysconfig/ssh && . /etc/sysconfig/ssh
if [ "x$SSHD_AUTO_KEYGEN" != "xno" ]; then
echo "Checking for missing server keys in /etc/ssh"
test -d /etc/ssh || mkdir -p /etc/ssh
ssh-keygen -A
fi