Search Unity

Denied access on custom git dependency with ssh

Discussion in 'Package Manager' started by lorux, Mar 4, 2020.

  1. lorux

    lorux

    Joined:
    Feb 9, 2017
    Posts:
    31
    Hello, i have prepared a custom package to add as a dependency into my manifest.json file, something like this:
    "my.package": "git@gitlab.com:mygroup/mypackage.git",

    I've generated my ssh key using ssh-keygen and succesfully added it into gitlab account. The key file was generated into .ssh default folder of windows: C:/Users/myuser/.ssh/id_rsa. Im getting an error when opening the project saying "Please make sure you have the correct access rights and the repository exists". I've also tried adding the key into PuTTy agent. The repository is created and all files are pushed. I have other dependencies working with https.
    What else do i need to do so unity uses this key and gets access?
     
    jalilseguel7 likes this.
  2. lorux

    lorux

    Joined:
    Feb 9, 2017
    Posts:
    31
    I was missing some ssh configuration in my pc. Here is the configuration flow on windows 10:
    • install git client
    • home -> services -> open ssh -> properties -> startup type then start
    • run ssh-keygen
    • navigate to C:/Users/myuser/.ssh/ and copy pub key data
    • add generated pub key into gitlab
    • run ssh -T git@gitlab.com -> retry -> host should be permanently added
     
    jalilseguel7 likes this.