Integrating with GitHub and Dataiku DSS
Hello,
As per the description for working with Github, (Working with Git — Dataiku DSS 12 documentation)
I need a DSS user's public SSH key, and if I don't have it, need to generate SSH key,
but the example shown on the description is for whom those use Dataiku Cloud.
(I don't use Dataiku Cloud but Enterprise.)
How do I generate SSH key for connecting external Github?
Would you give me an detailed example or explanation?
Thanks,
----------------------------------------------------------------------
Setup
To connect from DSS to an external git repository, you must copy your DSS user’s public SSH key and add it to the list of accepted SSH keys in your GitHub account.
To copy the public key, from the terminal of your DSS user’s account, run: pbcopy < ~/.ssh/id_rsa.pub
If you have not yet generated needed SSH keys, you will need to run ssh-keygen and follow corresponding prompts.
To generate your public key on Dataiku Cloud:
go to your launchpad > extension tab > add an extension,
select the git integration feature,
enter the domain of the repository (github.com by default),
click to validate and generate the key.
Dataiku Cloud will then automatically generate the key and run a git command to the origin to get (and verify) the SSH host key of this server. You can now copy the generated key and add it to your GitHub account. To find this key in the future or generate a new one go to the extension tab and edit the Git Integration feature.
For more assistance, see GitHub’s documentation.
Operating system used: Linux (centos)
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
Hi,
To generate an SSH key on your DSS instance if you are using
1) Cloud Stacks/Fleet manager you can use setup to add the SSH key action https://doc.dataiku.com/dss/latest/installation/cloudstacks-gcp/templates-actions.html#ssh-key
2) For custom install, you can generate an SSH key yourself for the dataiku user( user DSS was installed with) :
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agentThen add the public key to github.
-
Hi, I got SSH key of EC2 Server, already, (AWS Keypair)
Do you mean I have to generate a new SSH Key, then add public key to github?
otherwise, can I use the key generated before?
please explain me again,
Thanks,
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
Hi,
Reusing the same SSH key for different services/users is not advised in general.
It's recommend installing DSS with is dedicated user and generate a dedicated SSH key for the user which you will use for git access.