Github에 deploy 키 추가
3036 단어 DeployKeysGitHub
나는 그런 물건이 있는지 몰랐다.전용 사용자 (··) 하지 마세요!!
방법은 단지 배치 사용자가 키를 만들어서 등록하는 것이다.
GHE도 있잖아.
1. 배포 사용자가 키 만들기
이미 있다면 메밀국수를 사용해도 된다.[ec2-user@ip-10-21-12-201 ~]$ ssh-keygen -t ed25519
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/ec2-user/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ec2-user/.ssh/id_ed25519.
Your public key has been saved in /home/ec2-user/.ssh/id_ed25519.pub.
The key fingerprint is:
SHA256:/qSeuz07bmLo+8coz9FLr1SGQN8OR3d2Ow3yxyte4/c [email protected]
The key's randomart image is:
+--[ED25519 256]--+
| . o o +|
| . . o + =+|
| . o o .o+|
| . = .o|
| S . +. + |
| . . o. + .|
| .oo= . ..|
| o.+X*o o|
| .oBXBB=. E|
+----[SHA256]-----+
2. github에 공개 키를 등록합니다.
설정된 깊이 키
이런 느낌이 들 거예요.
3.clone pull。 [ec2-user@ip-10-21-12-201 workspace]$ git clone [email protected]:mercury-inc-cc/gascenter.git
Cloning into 'gascenter'...
The authenticity of host 'github.com (192.30.255.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.255.113' (RSA) to the list of known hosts.
remote: Enumerating objects: 368, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (239/239), done.
remote: Total 2631 (delta 187), reused 288 (delta 115), pack-reused 2263
Receiving objects: 100% (2631/2631), 4.98 MiB | 6.22 MiB/s, done.
Resolving deltas: 100% (744/744), done.
[ec2-user@ip-10-21-12-201 workspace]$ ll
total 0
drwxrwxr-x 9 ec2-user ec2-user 277 Mar 12 08:20 gascenter
push 권한도 부여된 것 같습니다.너 있니?계십니까?필요 없어요?
GHE도 있어요!
Reference
이 문제에 관하여(Github에 deploy 키 추가), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/murata-tomohide/items/c7a3ef25e5fd43fc38bc
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
[ec2-user@ip-10-21-12-201 ~]$ ssh-keygen -t ed25519
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/ec2-user/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ec2-user/.ssh/id_ed25519.
Your public key has been saved in /home/ec2-user/.ssh/id_ed25519.pub.
The key fingerprint is:
SHA256:/qSeuz07bmLo+8coz9FLr1SGQN8OR3d2Ow3yxyte4/c [email protected]
The key's randomart image is:
+--[ED25519 256]--+
| . o o +|
| . . o + =+|
| . o o .o+|
| . = .o|
| S . +. + |
| . . o. + .|
| .oo= . ..|
| o.+X*o o|
| .oBXBB=. E|
+----[SHA256]-----+
설정된 깊이 키
이런 느낌이 들 거예요.
3.clone pull。 [ec2-user@ip-10-21-12-201 workspace]$ git clone [email protected]:mercury-inc-cc/gascenter.git
Cloning into 'gascenter'...
The authenticity of host 'github.com (192.30.255.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.255.113' (RSA) to the list of known hosts.
remote: Enumerating objects: 368, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (239/239), done.
remote: Total 2631 (delta 187), reused 288 (delta 115), pack-reused 2263
Receiving objects: 100% (2631/2631), 4.98 MiB | 6.22 MiB/s, done.
Resolving deltas: 100% (744/744), done.
[ec2-user@ip-10-21-12-201 workspace]$ ll
total 0
drwxrwxr-x 9 ec2-user ec2-user 277 Mar 12 08:20 gascenter
push 권한도 부여된 것 같습니다.너 있니?계십니까?필요 없어요?
GHE도 있어요!
Reference
이 문제에 관하여(Github에 deploy 키 추가), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/murata-tomohide/items/c7a3ef25e5fd43fc38bc
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
[ec2-user@ip-10-21-12-201 workspace]$ git clone [email protected]:mercury-inc-cc/gascenter.git
Cloning into 'gascenter'...
The authenticity of host 'github.com (192.30.255.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.255.113' (RSA) to the list of known hosts.
remote: Enumerating objects: 368, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (239/239), done.
remote: Total 2631 (delta 187), reused 288 (delta 115), pack-reused 2263
Receiving objects: 100% (2631/2631), 4.98 MiB | 6.22 MiB/s, done.
Resolving deltas: 100% (744/744), done.
[ec2-user@ip-10-21-12-201 workspace]$ ll
total 0
drwxrwxr-x 9 ec2-user ec2-user 277 Mar 12 08:20 gascenter
Reference
이 문제에 관하여(Github에 deploy 키 추가), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/murata-tomohide/items/c7a3ef25e5fd43fc38bc텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)