From a69725e9730d2cc58205dfac415468754c892ded Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Thu, 16 Jul 2020 20:24:22 +0200 Subject: [PATCH] Ensure key format is PEM in beaker tests Change-Id: If77a8b05f74a65466fb79d7c066e889540acd980 --- playbooks/run-beaker-tests.yaml | 2 +- playbooks/run-libraries-beaker-tests.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/run-beaker-tests.yaml b/playbooks/run-beaker-tests.yaml index 414177d29..922fcddc3 100644 --- a/playbooks/run-beaker-tests.yaml +++ b/playbooks/run-beaker-tests.yaml @@ -10,7 +10,7 @@ echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config mkdir -p .ssh - ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" -m PEM sudo mkdir -p /root/.ssh cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys if [[ -f /usr/bin/yum || -f /usr/bin/dnf ]]; then diff --git a/playbooks/run-libraries-beaker-tests.yaml b/playbooks/run-libraries-beaker-tests.yaml index 1e29c799a..81d2a9fa4 100644 --- a/playbooks/run-libraries-beaker-tests.yaml +++ b/playbooks/run-libraries-beaker-tests.yaml @@ -9,7 +9,7 @@ echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config mkdir -p .ssh - ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" -m PEM sudo mkdir -p /root/.ssh cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys if [[ -f /usr/bin/yum || -f /usr/bin/dnf ]]; then