31 lines
290 B
Bash
31 lines
290 B
Bash
#!/bin/bash
|
|
|
|
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
|