Skip to content

Commit

Permalink
ssh node image configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Dec 19, 2024
1 parent cd1e9b7 commit 6dd69c2
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion image/base/mkosi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Packages=containerd
# Network
Packages=iproute
dbus
openssh
openssh-server
systemd-networkd
systemd-resolved
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ enable measurements.service
enable export_constellation_debug.service
enable systemd-timesyncd
enable udev-trigger.service
enable create-host-ssh-key.service
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[Unit]
Description=Create a host SSH key
Before=network-pre.target
Before=sshd.service

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

[Install]
WantedBy=network-pre.target
WantedBy=multi-user.target
1 change: 0 additions & 1 deletion image/mirror/packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ mokutil
nano
nano-default-editor
nvme-cli
openssh
openssh-server
passt-selinux
passwd
Expand Down
1 change: 0 additions & 1 deletion image/sysroot-tree/etc/ssh/ssh_config

This file was deleted.

2 changes: 2 additions & 0 deletions image/sysroot-tree/etc/ssh/sshd_config
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
HostKey /run/ssh_host_ecdsa_key
TrustedUserCAKeys /run/ssh_ca.pub
PasswordAuthentication no

0 comments on commit 6dd69c2

Please sign in to comment.