heroku add second email

create new public/private key for new email as follows

1) ssh-keygen -t rsa -C “mvjohn@klairvoynat.com”

2) provide new file name in which to save the key (/home/.ssh/seckey)

3) Then add your new key to the ssh-agent:- ssh-add ~/.ssh/seckey

4) Then add your new key to heroku :- heroku keys:add ~/.ssh/seckey

5) add SSH Config File as ~/.ssh/config and content as follows

Host heroku.com
Hostname heroku.com
Port 22
IdentitiesOnly yes
IdentityFile ~/.ssh/seckey
User mvjohn@klairvoynat.com
Host heroku.com
Hostname heroku.com
Port 22
IdentitiesOnly yes
IdentityFile ~/.ssh/id_rsa
User mvjohn@hotmail.com

6) clone the code using either

a) git clone git@heroku.com:your-application.git
b) heroku git:clone -a your-application

 

 

referenc

1) https://help.github.com/articles/generating-ssh-keys
2) http://kb.mediatemple.net/questions/1625/Using+an+SSH+Config+File

 

 

www.klairvoyant.in

Advertisements
This entry was posted in ROR, Ruby, ruby on rails, web development and tagged , . Bookmark the permalink.

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