OpenSSH had problems with starting the daemon after installation.
This is now fixed.
name = openssh
version = 5.9p1
-release = 4
+release = 5
groups = Application/Internet
url = http://www.openssh.com/portable.html
end
script prein
- getent group sshd_keys >/dev/null || groupadd -r ssh_keys || :
+ getent group ssh_keys >/dev/null || groupadd -r ssh_keys
end
end
script preun
/bin/systemctl --no-reload disable sshd.service >/dev/null 2>&1 || :
- /bin/systemctl --no-reload disable sshd-keygen.service >/dev/null 2>&1 || :
/bin/systemctl stop sshd.service >/dev/null 2>&1 || :
- /bin/systemctl stop sshd-keygen.service >/dev/null 2>&1 || :
end
script postun
Description=SSH server keys generation.
After=syslog.target
Before=sshd.service
+BindTo=sshd.service
[Service]
Type=oneshot
ExecStart=/usr/sbin/sshd-keygen
RemainAfterExit=yes
-
-[Install]
-WantedBy=multi-user.target
After=syslog.target network.target auditd.service
[Service]
-ExecStart=/usr/sbin/sshd -D $OPTIONS
+ExecStartPre=/usr/sbin/sshd-keygen
+ExecStart=/usr/sbin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
[Install]
+++ /dev/null
-[Unit]
-Description=OpenSSH Server Socket
-Conflicts=sshd.service
-
-[Socket]
-ListenStream=22
-Accept=yes
-
-[Install]
-WantedBy=sockets.target
+++ /dev/null
-[Unit]
-Description=OpenSSH per-connection server daemon
-After=syslog.target auditd.service
-
-[Service]
-EnvironmentFile=/etc/sysconfig/sshd
-ExecStart=-/usr/sbin/sshd -i $OPTIONS
-StandardInput=socket