blob: 2759dadc38e43b331b6d10dfd7b8e020c04f2321 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
if [ "$(id -u)" -ne 0 ]
then
exec sudo -- "$0" "$@"
fi
sedprog='/ penme host key @ [0-9]+\.[0-9].[0-9]+\.[0-9]+/ d'
FORREALS=-i~penme
sed ${FORREALS} -E -e "$sedprog" /root/.ssh/authorized_keys
|