This is part 2 of a 4 part series of setting up your systems to use Git but in this case, is of general interest to those who may need to generate SSH Keypairs.
Git uses SSH key pairs to authenticate the machine you are accessing the repository from with the place you store that repository. If you followed the post about installing Git on your MediaTemple server then this is the next step in getting Git ready. This post should also act as a quick reference if you are not yet familiar with, or just want reminding of, the method of creating SSH public keypairs.
What you will need
- SSH root access to your server (MediaTemple offer this though the Account Center)
- About 5 minutes of time
Method
This is a quick process and remarkably easy to do.
- Log into your server using SSH. Usually this is
ssh root@your-domain.com - Enter the command:
ssh-keygen -t rsa - You will be asked where you want to save the key file, just press enter. (If you are told the file already exists skip the next 2 steps)
- You’ll now be asked to enter a passphrase . You should enter a passphrase you will remember here as you will need it when you communicate with the main repository from now on
- Confirm the passphrase.
- You can view the public keypair that was just created by entering:
cat ~/.ssh/id_rsa.pub
That’s all, in the next post i’ll show you how to connect to your repository on Unfuddle.




Responses to Generating an SSH Keypair
Subscribe to the responses for this entry through RSS 2.0 or Atom
Posted on August 10th, 2008 at 10:59 pm (Permalink).