touka should automatically log in when the server is reinstalled, or even if the local machine's public key cannot be retrieved from the server.