Skip to content

Commit

Permalink
Merge pull request #66 from ekohl/use-ssh-keygen-A-on-modern-el
Browse files Browse the repository at this point in the history
Use ssh-keygen -A on modern Enterprise Linux
  • Loading branch information
bastelfreak committed Aug 11, 2022
2 parents e12dd04 + 68ebb6e commit 253bd66
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit 253bd66

Please sign in to comment.