Skip to content

Issue creating/reading known_hosts file on Win11 #33

Description

@lambrw91

I have IQMol installed on Windows 11 and configured to submit jobs to a remote server via ssh. Connection and job submission works fine. When connecting to the server, I'm prompted that the server key isn't found in the known_hosts file, but IQMol will add the entry. So far all fine.

When IQMol is closed and re-opened later, when reconnecting to the server, I'm again prompted that the server key isn't found in the known_hosts file. I check the file, and there is clearly an entry from before (....WoIg424PI30gA= Generated by IQmol) but it says again that IQMol can create an entry. This creates a second, duplicate entry in known_hosts.

Each additional time IQMol connects to the server, it prompts about not finding the entry in the known_hosts file, but it will create append a duplicate entry.

Image

Additionally, the key is tagged as ssh-dss, but OpenSSH disables that protocol by default. So that was odd. After an ssh-keyscan from the server, the entry that IQMol is writing exactly matches the ecdsa-sha2-nistp256 key.

mark01 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoY...
mark01 ssh-dss             AAAAE2VjZHNhLXNoY...

I did attempt to swap the tags around manually to see if it was just a mismatch on the read vs write, but it still creates a new entry in known_hosts each time it connects to the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions