준진의 블로깅
Home
  • 분류 전체보기 (141)
    • NO TITLE (2)
    • 개발 (69)
    • 이모티콘 (5)
    • 개인사업자 & 세금 (14)
    • 부동산 & 인테리어 (8)
    • 여행 (7)
      • 제주도 (0)
      • 미국서부(2019) (4)
      • 스페인(2017) (1)
    • 맛집 (5)
      • 분당, 서현, 판교 (5)
    • 반려견 (10)
    • 프랑스어 (18)
Home
  • 분류 전체보기 (141)
    • NO TITLE (2)
    • 개발 (69)
    • 이모티콘 (5)
    • 개인사업자 & 세금 (14)
    • 부동산 & 인테리어 (8)
    • 여행 (7)
      • 제주도 (0)
      • 미국서부(2019) (4)
      • 스페인(2017) (1)
    • 맛집 (5)
      • 분당, 서현, 판교 (5)
    • 반려견 (10)
    • 프랑스어 (18)
블로그 내 검색

준진의 블로깅

맛집, 개인사업자 정보, 개발, 여행 등등 잡다구리

  • 개발

    SSH 인증키 생성 & Github 에 등록

    2021. 2. 27.

    by. dundin

    반응형

    (자주 안하다보니까 할때마다 까먹어서 정리중 ..)

     

    SSH 인증키

    서버와 클라이언트가 SSH 로 통신할 때 비밀번호를 입력하는 대신 서버에 RSA 키를 제출해서 나를 인가목록에 추가하는 방식이다. Github은 password access를 더이상 지원하지 않는다고 선언했고 비밀번호로 레포지토리를 다운받으려고 할 경우 경고메일이 온다. 

     

    SSH Key 생성 방법 

    SSH Key를 생성하고 깃업에 등록하는 방법은 아래 링크에 잘 설명되어 있으니 참고. 

    docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh

     

    Connecting to GitHub with SSH - GitHub Docs

    Connecting to GitHub with SSH You can connect to GitHub using SSH. About SSH→ Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub without supplying your username and personal a

    docs.github.com

    ssh 명령어 

    내 공개키가 어떤 repo에 저장되어 있는지 확인 

    ssh -T -ai ~/.ssh/id_rsa git@github.com

     

    코멘트 변경 

    ssh-keygen -c -f ~/.ssh/some_key -C "my new comment"

     

     

    참고: medium.com/@jamessoun93/ssh%EB%9E%80-%EB%AC%B4%EC%97%87%EC%9D%B8%EA%B0%80%EC%9A%94-87b58c521d6f

     

    멀티 유저 

    monkey3199.github.io/develop/etc/2018/11/15/git_ssh_multi_user.html

     

     

    Trouble shooting #1 

    OS 업그레이드의 여파인지 이유는 모르겠다 ..

    갑자기 match 하려고 하면 REMOTE HOST IDENDIFICATION HAS CHANGED 라는 에러가 발생한다. 

     

     

    해결 

    아래 파일을 지워버린다. (불안하면 백업 하셔도 됩니다) 

    $ cd Users/dundin/.ssh/known_hosts

     

    그리고 git clone을 실행한다.

    그럼 github.com의 Finger print를 known host에 추가할것인지 물어본다

    yes 선택 

    $ git clone git@github.com:ios-certificate.git
    
    Cloning into 'ios-certificate'...
    The authenticity of host 'github.com (20.27.177.113)' can't be established.
    ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
    This key is not known by any other names
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    
    Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
    remote: Enumerating objects: 547, done.
    remote: Counting objects: 100% (271/271), done.
    remote: Compressing objects: 100% (232/232), done.
    remote: Total 547 (delta 78), reused 229 (delta 37), pack-reused 276
    Receiving objects: 100% (547/547), 2.08 MiB | 917.00 KiB/s, done.
    Resolving deltas: 100% (162/162), done.

    이제 잘 됩니다 

    반응형
    저작자표시 비영리 변경금지 (새창열림)

    '개발' 카테고리의 다른 글

    [iOS/Swift] Multiselection 되는 Photo picker Library 선택하기  (0) 2021.04.07
    [Swift] AppStore 리뷰 팝업 추가하기  (3) 2021.03.04
    Mac 기본 캘린더와 구글캘린더 싱크 오류 해결방법  (0) 2021.02.25
    CocoaPod 여러가지  (0) 2021.02.09
    [Swift/iOS] Alamofire & Combine 조합으로 네트워크 레이어 만들기  (1) 2021.01.22

    댓글

    관련글

    • [iOS/Swift] Multiselection 되는 Photo picker Library 선택하기 2021.04.07
    • [Swift] AppStore 리뷰 팝업 추가하기 2021.03.04
    • Mac 기본 캘린더와 구글캘린더 싱크 오류 해결방법 2021.02.25
    • CocoaPod 여러가지 2021.02.09
    맨 위로
전체 글 보기
Tistory 로그인
Tistory 로그아웃
로그아웃 글쓰기 관리

Today

Total

Powered by ⓒ Kakao Corp.

Designed by Nana
블로그 이미지
dundin

티스토리툴바