blob: 063444e1933891a0bb307950fef2b61917ca76ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
fingerprint=$3
authline="$4 $5"
username=$(id -un)
userhome=$(getent passwd $(id -un) | (IFS=: read _ _ _ _ _ home _ && echo "$home"))
case "$userhome" in
'' | *"'"* ) exit ;;
esac
usercommand=$userhome/.ssh/AnonymousAccessCommand
[ -x "$usercommand" ] || exit
printf 'command="%s",no-port-forwarding %s\n' "$usercommand $fingerprint" "$authline"
|