Multiple ssh key

In our current environment we have two different GitHub.com tennants (meaning two different accounts). That makes it not possible to use the same ssh key (provided by coder). If we manually generate an ssh key then it coder-gitssh fails. Also from my understanding the option of regex wouldnt work since the url used by github is the same. Any ideas?
9 Replies
Codercord
Codercord2w ago
Codercord
Codercord2w ago
<#1404450170216648798>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys2w ago
why does that make it not possible to use the same SSH key? it should work, can you elaborate?
anubis
anubisOP2w ago
we have two github tennants, that translates to two accounts (two licences) towards github.com. Two accounts can't have the same ssh key.
Phorcys
Phorcys4d ago
@anubis I am surprised that you can't share the account between the two tenants are they both on the root of github.com or do they have a subdomain?
anubis
anubisOP4d ago
They are both on github.com but are different enterprises and different accounts, billed twice. I know it sounds weird but has to be done that way due to some internal factors 🙁 ...
Phorcys
Phorcys4d ago
hmm, are you using Coder Enterprise/Premium?
anubis
anubisOP4d ago
No, we have the free version. But i was wondering, even in the paid version how would that work since the regex would be the same
matifali
matifali4d ago
How are you setting the regex? Which variable? If it's the one in external authentication section then the free version only supports a single external authentication.

Did you find this page helpful?