Fix SSH key regeneration service hanging on boot
Remove ExecStartPost that was calling systemctl restart ssh, which caused a deadlock. The Before=ssh.service ordering ensures keys are generated before ssh starts - no restart needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -126,7 +126,6 @@ ConditionPathExists=!/etc/ssh/ssh_host_ed25519_key
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/ssh-keygen -A
|
ExecStart=/usr/bin/ssh-keygen -A
|
||||||
ExecStartPost=/bin/systemctl restart ssh
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user