no ssh host keys generated when booting with systemd

Bug #1372937 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-image (Ubuntu)
Fix Committed
High
Michael Vogt

Bug Description

When booting the system image, nothing generates ssh host keys.

Normally I think these are created on installation, but for good reason they're not included in the image.
In cloud imags, cloud-init does this. In other systemd boot scenarios, they're generated by another ssh service that is then a dependency of ssh starting.

The end result is that the user cannot ssh in until they run
  ssh-keygen -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key

Steve Langasek (vorlon)
Changed in system-image (Ubuntu):
assignee: nobody → James Hunt (jamesodhunt)
Revision history for this message
Steve Langasek (vorlon) wrote :

This probably needs to be moved to a different package than system-image, which is the package for the atomic updating tools; but I'm not sure if we know what package this will be on, as I'm not sure the package to handle the system-image boot-time setup exists yet. (Will be based on lxc-android-config, but may not be the same source package.)

Steve Langasek (vorlon)
Changed in system-image (Ubuntu):
importance: Undecided → High
status: New → Triaged
James Hunt (jamesodhunt)
Changed in system-image (Ubuntu):
assignee: James Hunt (jamesodhunt) → Michael Vogt (mvo)
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.