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

Use ssh-keygen -A on modern Enterprise Linux #66

Merged
merged 1 commit into from
Aug 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/beaker/hypervisor/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ def install_ssh_components(container, host)
when /el-[89]/, /fedora-(2[2-9]|3[0-9])/
container.exec(%w(dnf clean all))
container.exec(%w(dnf install -y sudo openssh-server openssh-clients))
container.exec(%w(ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key))
container.exec(%w(ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key))
container.exec(%w(ssh-keygen -A))
container.exec(%w(sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/*))
when /^el-/, /centos/, /fedora/, /redhat/, /eos/
container.exec(%w(yum clean all))
Expand Down