2013년 9월 6일 금요일

Register SSH Pub Key to Github

Github SSH Pub Key 등록


Generate SSH Key

$ ssh-keygen -t rsa -C "your@email.com"

Copy generated RSA Key to Clipboard

$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3JEUABSWccJt7FhwrtwU5cdWr50Q+Cm80NDEY8CaxF3Vc0sQeqzHYPJLpWowTTRgebeoUgQrluROSWC342WxsSps6cNIlUM0ssl7498xpOZPBVx
... 중략 ...
JX0ZZRxwtSJnBdiuXX2zi1prw2AVsO/X8jIg59jeGJZbIqD3R+SvK5kWe3acPKuj2mdryhIEngpvMvJkAX5d your@email.com

github Site Sign-in

  • Account Setting > SSH Keys Menu
  • Add SSH Key
  • Title: your@email.com
  • Key: Paste your copied rsa pub key

Check Registered SSH Key on Github

$ git -T git@github.com
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
PTY allocation request failed on channel 0
Hi {yourName}! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
* If you see this sentence then you get successful to register SSH Key.

Clone Your Repository

$ git clone git@github.com:/yourID/repositoryPath.git

* NOW You can just pulling without authentication ! :)