def set_ssh_key(self, public_key_path):
        with open(public_key_path, 'r') as content_file:
            content = content_file.read()
        self.json_msg['Server']['SshKey'] = content
        self.json_msg['Server']['SshPasswordAuthAllowed'] = True