blob: c1f0624c50e334522c2e25e4063016d3e86c9634 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/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
|