Generate an SSH Key on Windows. Windows environments do not have a standard default unix shell. External shell programs will need to be installed for to have a complete keygen experience. The most straight forward option is to utilize Git Bash. Once Git Bash is installed the same steps for Linux and Mac can be followed within the Git Bash shell. Aug 08, 2019 Generate a New Key. Use this section of the interface to create new SSH key pairs, which include a public key and a private key. To generate a new SSH key pair, perform the following steps: Click Manage SSH Keys. Click Generate a New Key. To use a custom key name, enter the key name in the Key Name (This value defaults to idrsa): text box.
Table of Contents
Table of Contents
Guide to Git™ - Set Up Access to Private Repositories
Last modified: April 9, 2020
![]() Overview
Because they require SSH access, you must perform additional steps in order to clone a privately-hosted remote repository.
Set up access to private repositories
To set up access to private repositories, perform the following steps:
Generate an SSH key
If you have not already configured one, run the following command to generate an SSH key:
In this example,
username represents the cPanel account username and example represents the domain name.
After you run this command, the system will prompt you to enter a passphrase. Do not enter a passphrase, and press Enter to continue.
Confirm that you generated the SSH key correctly
To confirm that the key exists and is in the correct location, run the following command:
The output should resemble the following example, where
AAAAB3Nza... represents a valid SSH key:
Retain the full SSH key. Step 3 requires it.
If the output resembles the following example, ensure that you entered it correctly, and then run the command in Step 1 again:
If the output resembles the following example, ensure that you ran the cat command with the correct path:
Register your SSH key with the private repository host
For information about how to register your SSH key with another private repository host, consult that host’s website or documentation.Some repository hosts, such as Bitbucket, do not allow you to configure write access for your access keys.
To register an SSH key with GitHub, perform the following steps:
Test the SSH key
To test your SSH key, run the following command, where
example.com represents the private repository’s host:
Clone the repository
To clone the repository, run the following command on the cPanel account, where
[email protected]:MyStuff/private-repository.git represents the private repository’s clone URL:
Generate Key In Cpanel For Git CodeAdditional DocumentationComments are closed.
|