#!/bin/sh # First argument is OpenSSH auth line. # Following arguments are the ForceCommand. keys=$1 shift if [ -x "$1" ] then printf 'restrict,pty,command="%s" %s\n' "$*" "$keys" fi