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
Need to be able to configure ssh/sshd #181
Comments
What solution do you have in mind? General Ansible-like stage for file processing or specific sshd stage? |
Short answer: we chatted a bit about that last week and @bcl and I prefer a generic ansible-like file manipulation stage, but @larskarlitski and @teg are.. not thrilled with the idea of having generic stages. I'm going to file a separate issue to discuss what the general approach should be for these things but my feeling is that we'll end up with a specific "openssh" stage that uses an osbuild-provided tool/module for manipulating simple config files to actually make the changes. So I think it'd be okay to write a openssh-specific stage for now, and later we either port it to use osbuild's configtweak tool or we replace it with the generic configtweak stage. |
|
Closing because this is outdated. |
Many users who build images need to be able to tweak ssh/sshd configuration. Some platforms (e.g. Microsoft Azure, Google Compute Engine) expect certain ssh/sshd settings, and in our own testing we've occasionally had to change things like which port sshd listens on.
osbuild should allow users to change (or replace) the image's
ssh_config
orsshd_config
, so the image never has to come online with an "unsafe" or "unsupported" configuration.Kickstart doesn't offer a command to configure sshd, so kickstart users handle this in
%post
scriptlets, likelorax-composer
'sgoogle.ks
. Ansible uses generic file-management modules for this (see examples using template, replace, blockinfile, assemble).What needs to be configured?
Google's documentation on configuring custom images has the following recommendations:
Microsoft's documentation on how to prepare a Red Hat-based virtual machine for Azure directs the user to
So, to be compatible with
lorax-composer
and information provided by Amazon, Google and Microsoft osbuild should be able to specify at least the followingsshd_config(5)
settings:Google also has recommended settings for these
ssh_config(5)
items:The text was updated successfully, but these errors were encountered: