SSH Key 생성(Window / Mac)
SSH Key는 간단하게 매번 번거롭게 로그인을 하는것을 하지 않기 위해서 미리 인증서를 만들어 두는것을 말한다.
SSH Key를 생성하기 위해서는 Git Bash가 필요하다.
DOWN URL : https://gitforwindows.org/
Git for Windows
Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike. Git BASH Git for Windows provides a BA
gitforwindows.org
다운로드하고 설치를 하면 Git Bash가 설치가 되는데. Git Bash를 실행한다.
<Git Bash 실행>
Git Bash를 실행하면 다음과 같은데 명령어를 입력을 해서 SSH Key를 생성해야 한다.
적용알고리즘 | Public Key(FileName) | Private Key(FileName) |
ED25519 | id_ed25519.pub | id_ed25519 |
ED22519_SK | id_ed25519_sk.pub | id_ed25519_sk |
ECDSA_SK | id_ecdsa_sk.pub | id_ecdsa_sk |
RSA(at least 2048-bit key size) | id_rsa.pub | id_rsa |
ECDSA | id_ecdsa.pub | id_ecdsa |
일반적인 SSH Key Pair 생성은 다음과 같다.
< 일반적인 SSH key 생성 >
ED25519의 방식으로 키 생성 :
ssh-keygen -t ed25519 -C "email@example.com"
RSA의 방식으로 키 생성
ssh-keygen -t rsa -b 4096 -C "email@example.com"
Doc URL : https://docs.gitlab.com/ee/ssh/
GitLab and SSH keys | GitLab
GitLab and SSH keys Git is a distributed version control system, which means you can work locally but you can also share or “push” your changes to other servers. Before you can push your changes to a GitLab server you need a secure communication channel fo
docs.gitlab.com
RSA 방식으로 SSH Key를 생성한다.
추가로 경로 설정이나 다른 것은 설정하지 않으면 엔터를 눌러서 기본값으로 지정이 된다
Window 경로 'c/사용자/. ssh'
Mac 경로 '사용자/.ssh'
생성된 키의 등록을 하기 위해서는 key를 확인해야 한다.
Git bash 에서
cat ~/.ssh/id_rsa.pub
키 정보가 나오게 나오게되는데 모두다 선택해서 복사하고 등록하는곳에서 등록하면 된다.
ssh-rsa~~~~~ .com 까지이다.
본인은 GitLab을 등록하기 위해서 생성했는데 GitLab 프로젝트에 SSH Keys 항목에 등록했다.
★★★★☆
'개발 > 게임) 개발관련' 카테고리의 다른 글
문제해결) Error : Eslint Expeted indentation of 2 space but found 0 indent (2) | 2022.07.06 |
---|---|
iOS) Key Chain Service(키 체인) (2) | 2022.07.04 |
iOS) CocoaPods Start Guide (0) | 2022.06.23 |
개발관련)XmlDocument 클래스 (0) | 2022.06.21 |
iOS) 디자인 가이드(Human interface Guidelines) (0) | 2022.06.14 |
댓글