diff options
author | Gordon GECOS <u@adam> | 2021-03-03 23:09:22 -0500 |
---|---|---|
committer | Gordon GECOS <u@adam> | 2021-03-03 23:34:26 -0500 |
commit | a9d2d9eb91b7593d59d4647034be94e6417f28ba (patch) | |
tree | 588215fc2433d2c31939f327f7e96cefb0014409 | |
parent | ba705c909d98c181e126c952c97e2d56d8c7a24e (diff) |
add unpenme
-rwxr-xr-x | unpenme | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | if [ "$(id -u)" -ne 0 ] | ||
3 | then | ||
4 | exec sudo -- "$0" "$@" | ||
5 | fi | ||
6 | sedprog='/ penme host key @ [0-9]+\.[0-9].[0-9]+\.[0-9]+/ d' | ||
7 | FORREALS=-i~penme | ||
8 | sed ${FORREALS} -E -e "$sedprog" /root/.ssh/authorized_keys | ||