Changeset 5917 in /cluster/svnroot


Ignore:
Timestamp:
Mar 6, 2017 11:28:02 PM (4 years ago)
Author:
skylar
Message:

systemd unit to regenerate SSH keys on boot re #993

File:
1 copied

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.4.0-build_ng/src/etc/systemd/system/openssh-gen-host-keys.service

    r5908 r5917  
    11# $Id$
    22
     3# BCCD build process deletes host keys in /etc/ssh to ensure that each time BCCD boots, it has a unique set of host keys (#993)
     4
    35[Unit]
    4 Description="Set BCCD user password"
    5 After=getty@tty2.service
     6Description="Regenerate SSH host keys"
     7After=ssh.service
    68
    79[Service]
    8 ExecStart=/bin/bccd-passwd-wrapper bccd
     10ExecStart=/usr/sbin/dpkg-reconfigure openssh-server
    911Type=oneshot
    1012
     
    1618
    1719# This service requires user interaction via the TTY
    18 StandardInput=tty
    19 StandardOutput=tty
    20 TTYPath=/dev/tty2
    21 # TTYReset *must* be disabled so that the service does not get disconnected from its tty
    22 TTYReset=yes
    23 TTYVHangup=yes
    2420
    2521[Install]
Note: See TracChangeset for help on using the changeset viewer.