Regenerate ECDSA Host Key Follow System Account August 21, 2017 14:07 Label: Regenerate ECDSA Host Key Description: this recipe will automate ECDSA host key regeneration for Virtual Servers running on affected templates. For more information see https://onapp.zendesk.com/entries/60279963-Potential-SSH-host-key-vulnerability-update-recommended Compatible with: Unix Step 1: Script: if [[ -e /etc/ssh/ssh_host_ecdsa_key ]]; then echo -e "\nRemoving ecdsa keys\n"; rm -rf /etc/ssh/ssh_host_ecdsa* ; ssh-keygen -t ecdsa -b 521 -N '' -f /etc/ssh/ssh_host_ecdsa_key ; else ssh-keygen -t ecdsa -b 521 -N '' -f /etc/ssh/ssh_host_ecdsa_key; fi 0
Comments
0 comments