32 lines
290 B
Bash
32 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
|