Setting up Git (Linux) with your Beanstalk or GitHub account

This is a simple topic taking you through how to set up git with your Beanstalk or GitHub account

1./ Setting up GIT
1.1/ Download the latest git-core package using aptitude or synaptic

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install git-core git-gui git-doc

2./ Setting up SSH key
2.1/ change directory to ~/.ssh

$ cd ~/.ssh

2.2/ create SSH key. Keeping things simple, just enter an empty passphrase

$ ssh-keygen -t rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/your_user_directory/.ssh/id_rsa.
Your public key has been saved in /Users/your_user_directory/.ssh/id_rsa.pub.
The key fingerprint is:
01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db user_name@username.com
The key's randomart image is:
+--[ RSA 2048]----+
| .+ + |
| = o O . |
| = * * |
| o = + |
| o S . |
| o o = |
| o . E |
| |
| |
+-----------------+

2.3/ Add your SSH key to Beanstalk or GitHub

Copy id_rsa.pub content and …

On the Beanstalk site go to “Profile & Settings” > Click “Keys” > Click “Add public key”

beanstalk public key

On the GitHub site go to “Account Settings” > Click “SSH Public Keys” > Click “Add another public key”

github public key

Advertisements