Skip to content

Commit

Permalink
sshd and create-host-ssh-key service on node
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Dec 19, 2024
1 parent fc03ee6 commit 6423655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[Unit]
Description=Create a host SSH key
Before=sshd.service
Before=network-pre.target

[Service]
Type=oneshot
ExecStart=ssh-keygen -t ecdsa -q -N "" /run/ssh_host_ecdsa_key
ExecStart=/bin/bash -c "ssh-keygen -t ecdsa -q -N '' -f /run/ssh_host_ecdsa_key"

[Install]
WantedBy=multi-user.target
WantedBy=network-pre.target
File renamed without changes.

0 comments on commit 6423655

Please sign in to comment.