How to Generate a Public Key for GIT

GIT is a version control system similar to the better known CVS and Subversion (SVN) systems. Free hosting for open source GIT projects is available at GITHub, but it requires that you generate your own public SSH key.

Things You'll Need

  • Msysgit (Windows)
  • Git (Linux, Mac OS X, Unix)
Show More

Instructions

    • 1

      Open your terminal. In Linux or Unix, there will usually be a terminal shortcut in the menu. Under Mac OS X, you can open it by clicking "Spotlight" and typing "Terminal." Under Windows, your first impulse may be to open the Windows command prompt, but do not. Instead, click "Start," "Git," and select "Git BASH." This will allow you to use the version of the Linux BASH shell included with Git and access the commands you need to create your keypair.

    • 2

      Type the command "cd ~/.ssh" to enter the ".ssh" directory in your user's home folder. If you receive a "No such directory" error, that is fine. Simply skip Step 3 and go on to Step 4.

    • 3

      Type the following commands to backup your current SSH keys in a directory named "key_backup":

      mkdir key_backup

      cp id_rsa* key_backup

      rm id_rsa*

    • 4

      Type the following to generate a new SSH key:

      ssh-keygen -t rsa -C "your_email@address.com"

      If prompted for a filename, just hit "Enter."

    • 5

      Enter a password when asked. This will be used to access the SSH key. If you want, you can just hit Enter to have no password, but it is not recommended, since anyone who obtains your SSH key file will be able to access anything you have locked with your public key.

Related Searches:

References

Resources

Comments

You May Also Like

  • How to Generate a Public Key

    In the past, cryptography was done with a single key that when compromised destroyed the security of the entire cipher. Modern, public...

  • How to Generate an SSL Key

    Internet security is one of the hottest topics in the world today, with identity thefts and fraud schemes occurring daily. Secure Socket...

  • Public Key Encryption Technique

    Public key encryption is an asymmetric algorithmic technique used to address the vulnerability of communications broadcast in an interceptable medium. Although not...

  • Public Key Authentication Tutorial

    Public Key Infrastructure (PKI) uses two keys - one private, the other public - to secure the transfer of data. It was...

  • Git SSH Protocols

    Git SSH Protocols. Git is an open-source distribution system that is used when a program is developed over a period of time...

  • How to Use Public Key Encryption to Protect Data

    Public key encryption utilizes 2 keys for encryption. The public key is used to encrypt data, and a private key is used...

  • How to Install a Ruby Gem Git

    Git is a powerful tool used by developers to back up and host their software for others to view, modify and use....

Related Ads

Featured