mooltiverse / nyx

The one stop semantic release tool
https://github.com/mooltiverse/nyx
Apache License 2.0
116 stars 8 forks source link

Ssh key cannot be used #288

Closed DrummyFloyd closed 9 months ago

DrummyFloyd commented 9 months ago

here my ssh config for the git sections , dunno where im wrong

git:
  remotes:
    origin:
      authenticationMethod: PUBLIC_KEY
      user: DrummyFloyd
      privateKey: ".ssh/id_ed25519" # tried both line
      # privateKey: ~/.ssh/id_ed25519
❯ nyx mark
INFO[0000] Version: '3.1.1'                             
ERRO[0000] cannot instantiate a PublicKeys object using the provided private key: ssh: no key found 
an error occurred when trying to push: ssh: handshake failed: knownhosts: key mismatch

any idea what i'm missing?

yx version: 2.5.2

Usage:
    nyx [arguments] [command]

Commands are:
    clean               reverts the repository to its initial state and removes files created by other commands, if any
    infer               inspects the commit history and repository status and computes the project version
    make                produces artifacts (i.e. changelog) as per the configuration
    mark                commits, tags and pushes, according to the configuration and the repository status
    publish             publish the new release, if any, to the configured services

obviously , my ssh key exist, because i'vve clone my repo and work everyday with this key =)

sh-cau commented 9 months ago

Three things:

Hope that helps

flelli commented 9 months ago

Thanks @sh-cau . I'm closing this issue as it seems already addressed. Feel free to reopen in case you need.

DrummyFloyd commented 9 months ago

thank you guys for the answer !!!!