From fd9c04398afd1ae01e73b4b2c1c9214e01b0001e Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Thu, 4 Mar 2021 13:33:48 -0500 Subject: scripts copied from penme.git --- dot/local/bin/unpenme | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 dot/local/bin/unpenme (limited to 'dot/local/bin/unpenme') diff --git a/dot/local/bin/unpenme b/dot/local/bin/unpenme new file mode 100755 index 0000000..2759dad --- /dev/null +++ b/dot/local/bin/unpenme @@ -0,0 +1,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 -- cgit v1.2.3