
4n1s9 (4n1s9) asked a question.
Our enterprise github is behind OKTA authentication - after okta verification we can browse repositories hosted at https://git.corp.<ORGDOMAIN>.com on Chrome, however it is not accessible from git CLI, this is command and response:
```
git clone https://git.corp.<ORGDOMAIN>.com/<path_to_repo>.git
Cloning into '<repo>'...
fatal: unable to update url base from redirection:
asked for: https://git.corp.<ORGDOMAIN>.com/<path_to_repo>.git/info/refs?service=git-upload-pack
```
Is there a way we can make git cli work for clone/push/pull etc?

Hi Deepkamal,
My name is Andrei from Okta support.
For the behavior that you would be looking for you will need to generate a private key and upload the public key into Okta. This would be an authorized key, since the operation would need to be made without a password through SSH login. For more details I would suggest also looking over our documentations in the links bellow:
http://www.linuxproblem.org/art_9.html
https://medium.com/@amanze.ogbonna/accessing-pushing-to-github-without-username-and-password-3022feb077fb#:~:text=A%20way%20to%20skip%20typing,url%20into%20an%20SSH%20url.&text=to%20change%20the%20url.&text=Open%20Terminal%20(for%20Mac%20and,command%20prompt%20(for%20Windows).
Hi Andrei,
> For the behavior that you would be looking for you will need to generate a private key and upload the public key into Okta
I have my public key already added in GIT, how do i upload it to Okta?
my problem statement is different "how can i access our enterprise Github which is behind OKTA verification, via command line" , am able to access enterprise github via browser where I get OKTA verification page, how can i get OKTA verification done via command line too?