갈루아의 반서재

새로운 또는 기존 SSH 키를 GitHub 계정에 등록하는 방법


1. github.com 로그인 > 우측 상단 프로필 사진 Settings 클릭






2. 좌측 SSH and GPG Keys 클릭 > New SSH Key


Enter file in which to save the key (/root/.ssh/id_rsa): 그냥 엔터

Enter passphrase (empty for no passphrase): 입력 후 엔터


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(envangular)root@localhost:~# ssh-keygen -t rsa -b 4096 -C "*******@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
**:**:**:**:**:**:52:44:91:**:**:**:**:92:14:7f *********@gmail.com
The key's randomart image is:
+--[ RSA 4096]----+
     .+o         |
    ...          |
     o...        |
   ....oE o .    |
   .+...So.o     |
    o*...+o      |
    ..+... .     |
       .         |
                 |
+-----------------+
(envangular)root@localhost:~#
 
cs



1
2
(envangular)root@localhost:~# cat /root/.ssh/id_rsa.pub
ssh-rsa AAAA...... .......... *******@gmail.com
cs


위에서 확인한 키 입력 후 추가 버튼 클릭




3. 등록완료