You can use SSH to perform Git operations in repositories on GitHub AE. For more information, see "About SSH."
If you have an existing SSH key, you can use the key to authenticate Git operations over SSH.
Before you generate a new SSH key, you should check your local machine for existing keys.
Abra TerminalTerminalGit Bash.
ls -al ~/.sshto see if existing SSH keys are present.
$ ls -al ~/.ssh # Lists the files in your .ssh directory, if they exist
Check the directory listing to see if you already have a public SSH key. By default, the filename of a supported public key for GitHub AE is id_rsa.pub.
Tip: If you receive an error that ~/.ssh doesn't exist, you do not have an existing SSH key pair in the default location. You can create a new SSH key pair in the next step.
Either generate a new SSH key or upload an existing key.
If you don't have a supported public and private key pair, or don't wish to use any that are available, generate a new SSH key.
If you see an existing public and private key pair listed (for example, id_rsa.pub and id_rsa) that you would like to use to connect to GitHub AE, you can add the key to the ssh-agent.
For more information about generation of a new SSH key or addition of an existing key to the ssh-agent, see "Generating a new SSH key and adding it to the ssh-agent."