Function for authorizing SSH keys on hosts