mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Enable paramiko connection tests on RHEL 8.0.
This commit is contained in:
@@ -98,7 +98,7 @@ fi
|
||||
# We also need to add localhost's server keys to known_hosts.
|
||||
|
||||
if [ ! -f "${HOME}/.ssh/id_rsa.pub" ]; then
|
||||
ssh-keygen -q -t rsa -N '' -f "${HOME}/.ssh/id_rsa"
|
||||
ssh-keygen -m PEM -q -t rsa -N '' -f "${HOME}/.ssh/id_rsa"
|
||||
cp "${HOME}/.ssh/id_rsa.pub" "${HOME}/.ssh/authorized_keys"
|
||||
for key in /etc/ssh/ssh_host_*_key.pub; do
|
||||
pk=$(cat "${key}")
|
||||
|
||||
Reference in New Issue
Block a user