Skip to content

Unable to update a private registry due to SSH host verification on v1.6-beta1 #2333

@nickrobinson251

Description

@nickrobinson251
(@v1.6) pkg> registry up
    Updating registry at `~/.julia/registries/General`
    Updating registry at `~/.julia/registries/PackageRegistry`
    Updating git-repo `git@gitlab.invenia.ca:invenia/PackageRegistry`
SSH host verification: the identity of the server `gitlab.invenia.ca` does not match its known hosts record. Someone could be trying to man-in-the-middle your connection. It is also possible that the server has changed its key, in which case you should check with the server administrator and if they confirm that the key has been changed, update your known hosts file.
┌ Warning: Some registries failed to update:
│     — /Users/nick/.julia/registries/PackageRegistry — failed to fetch from repo
└ @ Pkg.Types /Users/julia/src/julia/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:1183

julia> versioninfo()
Julia Version 1.6.0-beta1
Commit b84990e1ac (2021-01-08 12:42 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.6.0)
  CPU: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.0 (ORCJIT, skylake)

i tried deleting the gitlab.invenia.ca entry from my ~/.ssh/known_hosts file, and removed this registry, then did

nick@nickwork ~/.j/registries> git clone git@gitlab.invenia.ca:invenia/PackageRegistry.git
Cloning into 'PackageRegistry'...
The authenticity of host 'gitlab.invenia.ca (54.204.245.62)' can't be established.
ECDSA key fingerprint is SHA256:9oGrB5kNOFwCJNTGv5oAZoPLfpseLFMKruHuk3MsWc8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitlab.invenia.ca,54.204.245.62' (ECDSA) to the list of known hosts.

but i still see the same issue.

The relevant line in the known_hosts file is

gitlab.invenia.ca,54.204.245.62 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAa7BE2JdARswKmt78V0rrQOj0dVWDISAWkrsI3y/lmfHlHea96IQ0VdjPzpmAs9JO4YnjI+bc9tgAsycy9/j4g=

The gitlab server does not have a static IP address. (The IP changes frequently. It's behind an AWS load balancer.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions