Windows 및 그 빌트인 OpenSSH 클라이언트를 사용하는 경우, 패스프레이즈로 보호되는 SSH 키를 프롬프트 없이 사용할 수 있도록 다음 단계를 따라 OpenSSH 클라이언트를 설정합니다.
SSH 키가 있는지 확인합니다. GitHub Docs 문서 기존 SSH 키 확인을 참조하십시오.
SSH 키가 없는 경우:
C:\Users\<YourUserName>\.ssh\config
가 있는지 확인합니다. 참고: Git Bash와 같은 일부 애플리케이션에서 .ssh
는 숨어 있는 하위 디렉토리입니다.
C:\Users\<YourUserName>\.ssh\config
가 없는 경우 새로 생성합니다.
C:\Users\<YourUserName>\.ssh\config
에 다음 콘텐츠를 추가하여 인증 에이전트에 로드할 키를 설정하고 타겟 서버에서의 용도를 지정합니다. 이 항목은 Host *
로 표시된 전역 설정 앞에 추가해야 합니다.
Host SERVER_NAME
IdentitiesOnly yes
IdentityFile FILE_PATH
SERVER_NAME
은 IdentityFile
을 통해 지정된 파일을 사용하는 서버입니다. 샘플 값은 github.com
입니다.FILE_PATH
는 생성한 SSH 파일에 대한 정규화된 경로입니다. 샘플 값은 C:\Users\<YourUserName>\.ssh\<FILE>
로, 이때 <FILE>
은 id_rsa
, id_ecdsa
, id_ed25519
또는 커스텀 이름일 수 있습니다.예:
Host github.com
IdentitiesOnly yes
IdentityFile C:/Users/user1/.ssh/id_ed25519
Windows PowerShell을 열되, Run as Administrator를 선택하여 열어야 합니다.
다음 커맨드를 실행하여 컴퓨터를 재부팅할 때마다 SSH 인증 에이전트 서비스가 시작되도록 설정합니다.
Get-Service ssh-agent | Set-Service -StartupType Automatic
다음 커맨드를 실행하여 서비스를 시작합니다.
Start-Service ssh-agent
다음 커맨드를 실행하고 Status
값이 Running
인지 확인하여 서비스가 실행 중인지 확인합니다.
Get-Service ssh-agent
키 파일을 ssh-agent
에 로드하고 <FILE>
을 키의 실제 파일 이름으로 바꾼 다음 프롬프트가 표시되면 패스프레이즈를 입력합니다.
ssh-add $env:USERPROFILE\.ssh\<FILE>
예:
ssh-add $env:USERPROFILE\.ssh\id_ed25519
다음 메서드 중 하나를 사용하여 Git이 Git에 포함된 SSH 클라이언트 대신 Windows OpenSSH 클라이언트를 사용하도록 합니다.
시스템 전체 설정의 경우 값이 C:/Windows/System32/OpenSSH/ssh.exe
인 GIT_SSH_COMMAND
라는 환경 변수를 생성합니다. 중요: 경로에는 포워드 슬래시를 사용해야 합니다.
특정 범위에 대해 설정을 구성하려면 터미널에서 다음 git config
커맨드를 실행합니다. 자세한 내용은 git config 기술 자료를 참조하십시오. 예제:
git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe
중요: 경로에는 포워드슬래시를 사용해야 합니다.
이제 Unity 패키지 관리자를 사용하면 패스프레이즈로 보호된 SSH 키를 사용하여 SSH를 통해 Git 저장소에서 패키지를 가져올 수 있습니다.
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.