...
Code Block | ||
---|---|---|
| ||
Host github.com
Hostname github.com
IdentityFile=/home/ukrdc/.ssh/bamboo
Host github.com-data_extract
Hostname github.com
IdentityFile=/home/ukrdc/.ssh/data_extract_key
Host github.com-ukrdc_database
Hostname github.com
IdentityFile=/home/ukrdc/.ssh/ukrdc_database_key
Host github.com-ukrr_quarterly_extract
Hostname github.com
IdentityFile=/home/ukrdc/.ssh/ukrr_quarterly_extract_key |
...
Note the modified hostname to match the reference in the config file.
The first entry in the config file specifies which key will be used by default where the hostname hasn’t been modified i.e. via pip/poetry.
The key here has had to be added to the “bamboo” build account in GitHub as one of its keys.
If you have had to do this then it does make the use of the deploy keys irrelevant.
Useful reference Articles/Sites
...