-- if there was an error writing to the file
        :raises: `.SSHException` -- if the key is invalid
        re