Skip to content

Commit

Permalink
adjust sshd image service & config
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Dec 13, 2024
1 parent 99368a5 commit a79ce26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion image/base/mkosi.skeleton/etc/ssh/sshd_config

This file was deleted.

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

[Install]
WantedBy=multi-user.target
WantedBy=network-pre.target
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=/bin/bash -c "ssh-keygen -t ecdsa -q -N '' -f /run/ssh_host_ecdsa_key"
ExecStart=ssh-keygen -t ecdsa -q -N "" /run/ssh_host_ecdsa_key

[Install]
WantedBy=basic.target
WantedBy=network-pre.target

0 comments on commit a79ce26

Please sign in to comment.