Windows의 빌트인 OpenSSH 클라이언트 대신 PuTTY 및 그 인증 에이전트(Pageant)를 사용 중이라면 다음 단계를 따르십시오. 예를 들어 Git 클라이언트로 SourceTree를 사용하는 경우 OpenSSH 대신 사용할 수 있는 PuTTY(및 Pageant)가 함께 제공됩니다.
Pageant를 포함하는 PuTTY 제품군을 설치해야 합니다. 아직 설치하지 않은 경우 https://www.putty.org/의 다운로드 링크를 이용합니다.
SSH 키가 있는지 확인합니다. GitHub Docs 문서 기존 SSH 키 확인을 참조하십시오.
SSH 키가 없는 경우:
다음 단계를 따라 Windows에 자동으로 키와 패스프레이즈를 로드합니다.
.ppk
확장자가 있는 파일을 선택하고 Open을 클릭해야 합니다.PuTTY의 plink.exe
프로그램을 사용하기 위해 이미 Git을 설정했을 수 있습니다. SSH 키를 사용할 때 Git이 Pageant를 사용하는지 다음과 같이 확인해 보십시오.
GIT_SSH_COMMAND
환경 변수가 있는지 확인합니다. 없는 경우 새로 생성합니다.plink.exe
파일의 정규화된 경로로 설정합니다. 기본적으로 위치는 "C:\Program Files\PuTTY\plink.exe"
입니다. 중요: 경로에 공백이 포함된 경우 값을 따옴표로 묶어야 합니다.시작 시 자동으로 프라이빗 키를 로드하려면 다음을 수행하십시오.
시작 메뉴를 열고 Pageant를 오른쪽 클릭합니다.
More > Open file location을 선택합니다. File Explorer 창이 열립니다.
Pageant를 오른쪽 클릭하고 Properties를 선택합니다. Pageant Properties 창이 열립니다.
시작 시 로드하려는 프라이빗 키의 전체 경로를 추가하여 Target 필드를 업데이트합니다. 각 키는 공백으로 구분합니다. 예:
"C:\Program Files\PuTTY\pageant.exe" "C:\Users\user1\myKeys\privatekey.ppk"
Apply와 Ok를 차례로 선택합니다.
저장소에서 커맨드 라인을 열고 git
커맨드를 실행하여 설정을 테스트함으로써 패스프레이즈에 대한 프롬프트 없이 작업을 완료할 수 있도록 합니다.
Pageant가 실행 중이고 패스프레이즈를 입력한 경우 Unity 패키지 관리자를 사용하면 패스프레이즈로 보호되는 SSH 키를 사용하여 SSH를 통해 Git 저장소에서 패키지를 가져올 수 있습니다.
다음에 Pageant를 시작하면 패스프레이즈로 보호되는 경우 패스프레이즈에 대한 프롬프트가 표시됩니다.
Windows 시작 시 Pageant를 자동으로 로드하려면 Windows 10에서 시작 시 자동으로 실행되도록 앱 추가 Microsoft 지원 문서를 참조하십시오.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.