SSH keys for GIT and HEROKU

Install git by typing

sudo apt-get install git

Then lets install Heroku toolbelt by typing this in

wget -qO- https://toolbelt.heroku.com/install.sh | sh

Both git and heroku use SSH keys. I always backup my SSH keys by backing up my ".ssh"  folder in my home directory. You can then copy this folder back to any new Ubuntu installation you have and you won't have to regenerate your SSH keys! Win! If you need to generate a new SSH key then just follow the instructions here: https://help.ubuntu.com/community/SSH/OpenSSH/Keys#Generating_RSA_Keys and you should be good to go.

As an additional optional I like to configure my username and email in git. Follow the steps in the two listed links below and your git will be setup right.

  1. https://help.github.com/articles/setting-your-username-in-git
  2. https://help.github.com/articles/setting-your-email-in-git

You now have SSH keys which GIT and HEROKU will use plus you have setup your git config which will also benefit both these programs.

About these ads

One thought on “SSH keys for GIT and HEROKU

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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