Blame ssh-keygen-dsa.service
|
Jan F |
53f618d |
[Unit]
|
|
Jan F |
53f618d |
Description=SSH DSA Keygeneration.
|
|
Jan F |
53f618d |
After=syslog.target
|
|
Jan F |
53f618d |
Before=sshd.service
|
|
Jan F |
53f618d |
ConditionPathExists=!/etc/ssh/ssh_host_dsa_key
|
|
Jan F |
53f618d |
|
|
Jan F |
53f618d |
[Service]
|
|
Jan F |
53f618d |
Type=oneshot
|
|
Jan F |
53f618d |
EnvironmentFile=/etc/sysconfig/sshd
|
|
Jan F |
53f618d |
ExecStart=/usr/bin/ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -C '' -N ''
|
|
Jan F |
53f618d |
ExecStartPost=/bin/chown root:ssh_keys /etc/ssh/ssh_host_dsa_key
|
|
Jan F |
53f618d |
ExecStartPost=/bin/chmod 640 /etc/ssh/ssh_host_dsa_key
|
|
Jan F |
53f618d |
ExecStartPost=/bin/chmod 644 /etc/ssh/ssh_host_dsa_key.pub
|
|
Jan F |
53f618d |
ExecStartPost=/sbin/restorecon /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_dsa_key.pub
|
|
Jan F |
53f618d |
RemainAfterExit=yes
|
|
Jan F |
53f618d |
|
|
Jan F |
53f618d |
[Install]
|
|
Jan F |
53f618d |
WantedBy=multi-user.target
|