Skip to content

Allow using known hosts and host key checking - #5

Open
afbjorklund wants to merge 2 commits into
brightzheng100:mainfrom
afbjorklund:known-hosts
Open

afbjorklund wants to merge 2 commits into
brightzheng100:mainfrom
afbjorklund:known-hosts

Conversation

@afbjorklund

@afbjorklund afbjorklund commented Mar 1, 2025

Copy link
Copy Markdown
Contributor

Keeps a local "known_hosts" file with the host keys.

cluster:
  name: cluster
  privateKey: cluster-key
  knownHosts: known-hosts

Closes #4

Keeps a local "known_hosts" file with the host keys.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Comment thread pkg/cluster/cluster.go
Previously was only checking the key and removed old entries.
But need to also compare the host against all (current) hosts.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optionally validate host keys

1 participant