blob: c1f0624c50e334522c2e25e4063016d3e86c9634 (
plain) (
tree)
|
|
#!/usr/bin/env bash
# Only allow ssh commands starting with 'scp' or 'rsync'
case $SSH_ORIGINAL_COMMAND in
scp*)
$SSH_ORIGINAL_COMMAND ;;
rsync*)
$SSH_ORIGINAL_COMMAND ;;
*)
echo "Not allowed with this key: $SSH_ORIGINAL_COMMAND" ;;
esac
|