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/
The key fingerprint is:
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 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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s