macOS를 사용하는 경우, 프롬프트 없이 패스프레이즈로 보호되는 SSH 키를 사용할 수 있도록 다음 단계를 따라 OpenSSH 클라이언트를 설정합니다.
SSH 키가 있는지 확인합니다. GitHub Docs 문서 기존 SSH 키 확인을 참조하십시오.
SSH 키가 없는 경우:
홈 폴더에 .ssh
하위 디렉토리가 있는지 확인하고 그 안에 config
파일이 있는지 확인합니다. 참고: .ssh
는 숨겨진 하위 디렉토리입니다.
~/.ssh/config
파일이 없는 경우 생성합니다.
다음 콘텐츠를 ~/.ssh/config
에 추가하여 인증 에이전트에 로드할 키를 설정하고 타겟 서버에 의한 해당 키의 사용을 지정합니다. 전역 설정이 Host *
로 표시되기 전에 이 항목을 추가해야 합니다.
Host SERVER_NAME
UseKeychain yes
IdentitiesOnly yes
IdentityFile FILE_PATH
SERVER_NAME
은 IdentityFile
로 지정된 파일을 사용하는 서버입니다. 샘플 값은 github.com
입니다.FILE_PATH
는 생성한 SSH 파일에 대한 경로입니다. 샘플 값은 ~/.ssh/<FILE>
이며, 여기서 <FILE>
은 id_rsa
, id_ecdsa
, id_ed25519
또는 커스텀 이름일 수 있습니다.예:
Host github.com
UseKeychain yes
IdentitiesOnly yes
IdentityFile ~/.ssh/id_ed25519
터미널 애플리케이션을 엽니다.
키 파일을 ssh-agent
에 로드하고 <FILE>
을 키의 실제 파일 이름으로 대체한 다음, 프롬프트가 표시되면 패스프레이즈를 입력합니다.
ssh-add ~/.ssh/<FILE>
예:
ssh-add ~/.ssh/id_ed25519
이렇게 하면 설정이 완료됩니다. macOS는 기본적으로 ssh-agent
를 시작하며, 이제 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.