From bca037330893403ee20e8d6381db9b375c137c19 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Wed, 8 Apr 2026 16:36:59 +0000 Subject: misc fixes --- authorized_keys.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'authorized_keys.sh') diff --git a/authorized_keys.sh b/authorized_keys.sh index 867d153..1ee9f73 100755 --- a/authorized_keys.sh +++ b/authorized_keys.sh @@ -6,9 +6,10 @@ user="$1" if [ "$1" = "new" ]; then type="$2" key="$3" + connection="$4" if user="$(grep -l -s -r -P '^\s*auth:\s*\Q'"$type"'\E\s+\Q'"$key"'\E$' /opt/autopeer/dn42-registry/data/mntner/ | perl -ne 's@^.*/@@; s@-MNT$@@; print lc;' | head -1)"; then perl -ne 'print if s@^\s*auth:\s*ssh-@restrict,pty ssh-@'