|
@ -71,6 +71,15 @@ elif [[ "$SSH_ORIGINAL_COMMAND" =~ ^"ssh-key rm "[a-zA-Z0-9._-]+$ ]]; then |
|
|
|
|
|
|
|
|
# echo "Would accept: $SSH_ORIGINAL_COMMAND" >&2 |
|
|
# echo "Would accept: $SSH_ORIGINAL_COMMAND" >&2 |
|
|
exec sudo /usr/local/sbin/ssh-key rm "$label" "${ssh_args[@]:2}" |
|
|
exec sudo /usr/local/sbin/ssh-key rm "$label" "${ssh_args[@]:2}" |
|
|
|
|
|
elif [[ "$SSH_ORIGINAL_COMMAND" =~ ^"ssh-key get-type "[a-zA-Z0-9._-]+$ ]]; then |
|
|
|
|
|
log "ACCEPTED: $SSH_ORIGINAL_COMMAND" |
|
|
|
|
|
|
|
|
|
|
|
## Interpret \ to allow passing spaces (want to avoid possible issue with \n) |
|
|
|
|
|
#read -a ssh_args <<< "${SSH_ORIGINAL_COMMAND}" |
|
|
|
|
|
ssh_args=(${SSH_ORIGINAL_COMMAND}) |
|
|
|
|
|
|
|
|
|
|
|
# echo "Would accept: $SSH_ORIGINAL_COMMAND" >&2 |
|
|
|
|
|
exec sudo /usr/local/sbin/ssh-key get-type "$label" "${ssh_args[@]:2}" |
|
|
elif [[ "$SSH_ORIGINAL_COMMAND" =~ ^"request-recovery-key "[a-zA-Z0-9._-]+$ ]]; then |
|
|
elif [[ "$SSH_ORIGINAL_COMMAND" =~ ^"request-recovery-key "[a-zA-Z0-9._-]+$ ]]; then |
|
|
log "ACCEPTED: $SSH_ORIGINAL_COMMAND" |
|
|
log "ACCEPTED: $SSH_ORIGINAL_COMMAND" |
|
|
|
|
|
|
|
|