Moving user and authorized_key scanning to their own methods