Github ssh keys for rails application

Asp.net Tools
After creating a rails application generally we create a repository github to deploy our application in to the github.

For deploying our application from the local system we need ssh key.
To generate ssh key in our system.


First you have to check is ssh key is already in your system or not follow the following steps
step1.


$ cd ~/.ssh 
 
If it says “No such file or directory“ skip to step 3. Otherwise continue to step 2.
  
step2
 
$ ls

$ mkdir key_backup
$ cp id_rsa* key_backup
$ rm id_rsa*
 
step 3:
Generate a new SSH key.


$ ssh-keygen -t rsa -C "your_email@youremail.com"








step 4:
Add your SSH key to GitHub.


Here we have two options 
1.add ssh keys in the particular repository "deploy keys" option from admin settings .
If you add ssh keys for a particular repository then with that ssh key you can't push another application in to the github. 



2.If you add ssh key as a publish ssh key from "account settings" in github
 it will treat as a publish and you can able to push any application using that ssh key from that local system.





 
 

Facebook Rss Twitter

Get Weekly News letter of Updates!