Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH to localhost can fail in tests if the host key has changed #348

Open
hategan opened this issue Feb 20, 2023 · 0 comments
Open

SSH to localhost can fail in tests if the host key has changed #348

hategan opened this issue Feb 20, 2023 · 0 comments

Comments

@hategan
Copy link
Collaborator

hategan commented Feb 20, 2023

SAGA does some ssh-ing to localhost when testing. However, it uses strict host key checking, which can cause it to fail (or maybe hang waiting for a user prompt; I don't recall exactly) when there is no localhost in known_hosts.

For that reason, the test suite does a "preloading" ssh to localhost with strict host checking disabled, which puts the right key in known_hosts. However, this can fail, too, if there is a host key there already and localhost changes its key. It may be possible to fix this using something like "NoHostAuthenticationForLocalhost", but some work is needed to figure it out.

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

No branches or pull requests

1 participant