#!/bin/sh
# From http://pthree.org/2011/07/22/openssh-best-practice/
 
 case "$SSH_ORIGINAL_COMMAND" in
     *\&*)
         echo "Rejected"
     ;;
     *\(*)
         echo "Rejected"
     ;;
     *\{*)
         echo "Rejected"
     ;;
     *\;*)
         echo "Rejected"
     ;;
     *\<*)
         echo "Rejected"
     ;;
     *\`*)
         echo "Rejected"
     ;;
     *\|*)
         echo "Rejected"
     ;;
     rsync\ --server*)
         $SSH_ORIGINAL_COMMAND
     ;;
     *)
         echo "Rejected"
     ;;
 esac


syntax highlighted by Code2HTML, v. 0.9.1