Add check_mode support to authorized_key. Fixes #7300

Signed-off-by: Hector Acosta <hector.acosta@gmail.com>
Merge pull request #8209 from hacosta/hacosta_7300

Add check_mode support to authorized_key. Fixes #7300