|
@ -44,7 +44,7 @@ if [[ "$SSH_ORIGINAL_COMMAND" =~ [\&\(\{\;\<\>\`\$\}] ]]; then |
|
|
reject |
|
|
reject |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [[ "$SSH_ORIGINAL_COMMAND" =~ ^"ssh-key add ssh-rsa "[a-zA-Z0-9/+]+" "[a-zA-Z0-9._-]+"@"[a-zA-Z0-9._-]+""$ ]]; then |
|
|
|
|
|
|
|
|
if [[ "$SSH_ORIGINAL_COMMAND" =~ ^"ssh-key add ssh-rsa "[a-zA-Z0-9/+=]+" "[a-zA-Z0-9._-]+"@"[a-zA-Z0-9._-]+""$ ]]; then |
|
|
log "ACCEPTED: $SSH_ORIGINAL_COMMAND" |
|
|
log "ACCEPTED: $SSH_ORIGINAL_COMMAND" |
|
|
|
|
|
|
|
|
## Interpret \ to allow passing spaces (want to avoid possible issue with \n) |
|
|
## Interpret \ to allow passing spaces (want to avoid possible issue with \n) |
|
|