Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (9 sloc) 237 Bytes
#!/bin/bash
keyfile=/etc/ssh/ssh_host_ecdsa_key
if ssh-keygen -l -f $keyfile | grep -q 'root@fab-dev'; then
echo "regenerating ECDSA key"
rm -f $keyfile*
ssh-keygen -q -f $keyfile -N '' -t ecdsa
/etc/init.d/ssh reload
fi
exit 0
You can’t perform that action at this time.