Preparing for a Git Repository connection with SSH Keys

This section describes how to prepare for a Git repository connection with SSH Keys.

Procedure

  1. Gather the GitHub Repository information for the SSH connection.
    Note: Ensure you have granted the authority to access the GitHub repository.
    1. From the GitHub home page of the Git repository, click the Clone or download button to get the SSH Git repository URL. A Clone with HTTPs window opens.
    2. On the Clone with HTTPs window, click the Use SSH link. The Clone with SSH window displays.
    3. On the Clone with SSH window, you can see the SSH information. Copy or save the text under Use a password protected SSH key for the connection to the Git repository in later steps.
  2. Add the SSH key to the GitHub user profile on the host.
    1. Use the IBM® Developer for z/OS® Preferences to create SSH keys as described in Preparing for the IBM Developer for z/OS with DBB integration. Copy the contents of ~/.ssh/id_rsa.pub to the clipboard for later steps.
    2. Click your profile on GitHub toolbar and select Settings. The Personal settings page opens.
    3. On Personal settings, select SSH and GPG keys. The SSH keys information displays to the right of the menu.
    4. On the SSH keys page, click New SSH key. The new SSH key wizard opens.
    5. Name the SSH key in the Title field and paste the copied content of ~/.ssh/id_rsa.pub in the Key field.
    6. Click Add SSH key to add the key to your profile.