Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ubuntu-server-builder opened this issue May 10, 2023 · 3 comments
Open

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

ubuntu-server-builder opened this issue May 10, 2023 · 3 comments
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1267505

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2014-01-09T15:14:41.721282+00:00
date_fix_committed = None
date_fix_released = None
id = 1267505
importance = medium
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1267505
milestone = None
owner = cmsj
owner_name = Chris Jones
private = False
status = triaged
submitter = cmsj
submitter_name = Chris Jones
tags = []
duplicates = []

Launchpad user Chris Jones(cmsj) wrote on 2014-01-09T15:14:41.721282+00:00

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/

@ubuntu-server-builder ubuntu-server-builder added bug Something isn't working correctly launchpad Migrated from Launchpad labels May 10, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Clint Byrum(clint-fewbar) wrote on 2014-01-14T05:11:23.875289+00:00

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

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

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2014-01-14T22:05:48.893486+00:00

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

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Clint Byrum(clint-fewbar) wrote on 2014-01-15T00:01:26.228311+00:00

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant