#!/bin/sh cmd=/etc/ssh/user-d.AnonymousForceCommand [ -x "$cmd" ] || exit key=$1 shift printf 'restrict,pty,command="%s" %s\n' "$cmd $*" "$key"