SSH ์ฐ๊ฒฐ์ ํ ์คํธํ๊ธฐ ์ ์ ์ด๋ฏธ ๋ค์์ ์ํํ ์ํ์ฌ์ผ ํฉ๋๋ค.
์ด์ ์ ๋ง๋ SSH ํค ์ํธ๋ฅผ ์ฌ์ฉํ์ฌ ์ด ์์ ์ ์ธ์ฆํด์ผ ํฉ๋๋ค. SSH ํค ์ํธ ์ฌ์ฉ์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
์ฐธ๊ณ ํญ๋ชฉ
์ด ๋ฌธ์์๋ github.com
๋๋ฉ์ธ์ ์ฌ์ฉํ๋ ๋ช
๋ น์ด๋ ์์ ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค. octocorp.ghe.com
์(๊ณผ) ๊ฐ์ ๋ค๋ฅธ ๋๋ฉ์ธ์์ GitHub์ ์ก์ธ์คํ ์ ์์ต๋๋ค.
-
ํฐ๋ฏธ๋ํฐ๋ฏธ๋Git Bash๋ฅผ ์ฝ๋๋ค.
-
๋ค์์ ์ ๋ ฅํฉ๋๋ค.
Shell ssh -T git@github.com # Attempts to ssh to GitHub
ssh -T git@github.com # Attempts to ssh to GitHub
๋ค์๊ณผ ๊ฐ์ ๊ฒฝ๊ณ ๊ฐ ํ์๋ ์ ์์ต๋๋ค.
> The authenticity of host 'github.com (IP ADDRESS)' can't be established. > ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. > Are you sure you want to continue connecting (yes/no)?
-
ํ์๋๋ ๋ฉ์์ง์ ์ง๋ฌธ์ด GitHub์ ๊ณต๊ฐ ํค ์ง๋ฌธ๊ณผ ์ผ์นํ๋์ง ํ์ธํฉ๋๋ค. ์ผ์นํ๋ ๊ฒฝ์ฐ
yes
๋ฅผ ๋ค์ ๋ ฅํฉ๋๋ค.> Hi USERNAME! You've successfully authenticated, but GitHub does not > provide shell access.
๋ค์๊ณผ ๊ฐ์ ์ค๋ฅ ๋ฉ์์ง๊ฐ ํ์๋ ์๋ ์์ต๋๋ค.
... Agent admitted failure to sign using the key. debug1: No more authentication methods to try. Permission denied (publickey).
์ด๋ ํน์ Linux ๋ฐฐํฌํ์ ์๋ ค์ง ๋ฌธ์ ์ ๋๋ค. ์์ธํ ๋ด์ฉ์ ์ค๋ฅ: ์์ด์ ํธ๊ฐ ์๋ช ์คํจ๋ฅผ ์ธ์ ํ์ต๋๋ค.์(๋ฅผ) ์ฐธ์กฐํ์ธ์.
์ฐธ๊ณ ํญ๋ชฉ
์๊ฒฉ ๋ช ๋ น์ ์ฝ๋ 1์ ์ฌ์ฉํ์ฌ ์ข ๋ฃ๋์ด์ผ ํฉ๋๋ค.
-
๊ฒฐ๊ณผ ๋ฉ์์ง์ ์ฌ์ฉ์ ์ด๋ฆ์ด ํฌํจ๋์ด ์๋์ง ํ์ธํฉ๋๋ค. "๊ถํ ๊ฑฐ๋ถ๋จ" ๋ฉ์์ง๊ฐ ํ์๋๋ฉด ์ค๋ฅ: ๊ถํ์ด ๊ฑฐ๋ถ๋จ(publickey)์(๋ฅผ) ์ฐธ์กฐํ์ธ์.