cc_ssh.py doesn't honor host key paths in sshd_config

Bug #1267505 reported by Chris Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Medium
Unassigned

Bug Description

If one has configured sshd_config to place host keys in a non-default location (e.g. on some persistent volume that survives instance termination/recreation), cc_ssh.py will still create keys on the first boot in /etc/ssh/

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Simple solution: allow cloud.cfg to specify the path.

Slightly harder but way cooler: parse /etc/ssh/sshd_config

Revision history for this message
Scott Moser (smoser) wrote :

well, without testing i did the attached branch.
give it a shot, see what you tihnk.
it might work.

Changed in cloud-init:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Looks pretty good Scott. I'll try it out tomorrow if Chris doesn't beat me to it. :)

Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
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.