Files
mongo/buildscripts/package_test/rhel-user-data.sh
2022-09-22 21:28:43 +00:00

7 lines
272 B
Bash

#! /bin/bash
sed -i '/^PubkeyAcceptedAlgorithms/s/$/,ssh-rsa/' /etc/crypto-policies/back-ends/opensshserver.config
sed -i '/^HostKeyAlgorithms/s/$/,ssh-rsa/' /etc/crypto-policies/back-ends/opensshserver.config
update-crypto-policies --set LEGACY
systemctl restart sshd