From 2e5909e761f40e42684fbaa71f3b5bcb49500567 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sat, 23 Oct 2021 12:52:42 -0400 Subject: move all files to EndoForge --- EndoForge/src/AuthorizedKeysCommand | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 EndoForge/src/AuthorizedKeysCommand (limited to 'EndoForge/src/AuthorizedKeysCommand') diff --git a/EndoForge/src/AuthorizedKeysCommand b/EndoForge/src/AuthorizedKeysCommand new file mode 100755 index 0000000..6e13063 --- /dev/null +++ b/EndoForge/src/AuthorizedKeysCommand @@ -0,0 +1,15 @@ +#!/bin/sh +username=$1 +userhome=$2 +fingerprint=$3 +authline="$4 $5" + +case "$userhome" in + *'"'*) exit ;; +esac + +usercommand=$userhome/.ssh/AnonymousAccessCommand + +[ -x "$usercommand" ] || exit + +printf 'command="%s",no-port-forwarding %s\n' "$usercommand $fingerprint" "$authline" -- cgit v1.2.3