Skip to content

Working with Unity Packages on GIT

marc-n-dream edited this page Jul 28, 2025 · 1 revision

Configuring SSH keys for usage with Unity Package Manager on OSX

In your terminal application, execute the following steps:

  1. If you do not have an SSH key yet
    1. ssh-keygen -t rsa -b 4096 -C "[email protected])"
    2. Copy the public key cat ~/.ssh/id_rsa.pub | pbcopy -> It is now in your copy - paste buffer
    3. Add this as a new key into your GIT providers SSH Key management page. For example for Bitbucket Cloud: https://bitbucket.org/account/settings/ssh-keys/
  2. Because ssh keys are password protected, you need to configure SSH to automatically resolve the password from the keychain:
    1. open ~/.ssh/config using vim ~/.ssh/config for example
    2. Add the following lines to the end of the file:
Host bitbucket.org
UseKeychain yes   # macOS only, optional
IdentitiesOnly yes
IdentityFile ~/.ssh/id_rsa
  1. Execute the following to configure ssh to use your keychain to provide the ssh password: ssh-add --apple-use-keychain ~/.ssh/id_rsa

If you open Unity now, it should automatically be able to resolve the git based packages starting with git@...

Clone this wiki locally