github push μ€λ₯: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
κ°μκΈ° λ©°μΉ μ λΆν° github μ push λ₯Ό νλ €κ³ νλ©΄ μλμ κ°μ WARNING μ΄ λ΄λ€.
μ²μμ λμ SSH μ€μ μ΄ λ¬Έμ μΈκ° νλλ°,
μ°Ύμ보λ μ΅κ·Ό(23/03/24)μ github μμ key μ΄μκ° μμ΄ host key λ₯Ό λ³κ²½νλ κ±°μλ€.
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
We updated our RSA SSH host key | The GitHub Blog
At approximately 05:00 UTC on March 24, out of an abundance of caution, we replaced our RSA SSH host key used to secure Git operations for GitHub.com.
github.blog
λλ¬Έμ 2023λ 03μ 24μΌ μ΄μ μ host key λ₯Ό μ€μ νμΌλ©΄ μμ κ°μ μ€λ₯λ₯Ό λ³΄κ² λλ€.
WARNING λ©μμ§μ 'It is also possible that a host key has just been changed.' μ ν΄λΉνλ κ²½μ°μλ€.
ν΄κ²° λ°©λ²μ host key λ₯Ό λ°κΏμ£Όλ©΄ λλ κ±°λΌμ μμ 곡μ ν¬μ€ν μ λ°λΌκ°λ©΄ λλ€.
μΌλ¨ κΈ°μ‘΄μ github.com μ host key λ₯Ό μμ ν΄μ€λ€.
$ ssh-keygen -R github.com
κ·Έλ°λ°, λμ κ²½μ° IP μ£Όμλ‘ λ±λ‘λμ΄ μμ΄μ μ΄λ κ² ν΄λ κΈ°μ‘΄μ key κ°μ μμ νμ§λ μμ κ²μ νμΈνλ€.
μκ° κΈ°μ‘΄μ λ±λ‘λμ΄μλ κ²μ΄κ³ , μλκ° μλ‘κ² μΆκ°λ κ²μ΄λ€.
github.com μ IP μ£Όμκ° 20.200.245.247 μ΄λ―λ‘,
κ²°κ΅ μ€λ³΅ λ±λ‘λλ νμμ΄ λ°μνλ€.
κ·Έλμ κ·Έλ₯ ~/.ssh/known_hosts νμΌμ μ§μ νΈμ§νλ€.
$ vi ~/.ssh/known_hosts
(λλ $ ssh-keygen -R 20.200.245.247 λ‘ μμ ν΄μ€λ λλ€.)
μ§ν λ€μ push λ₯Ό μλνλ©΄ key fingerprint λ₯Ό νμΈνκ³ push λ₯Ό ν μ μλ€.
μλμ μΌλ‘ ν΄λΉ IP μ host key λ₯Ό μΆκ°ν΄μ£Όλλ°, μ΄λ github μ SSH key fingerprint κ° λ§λμ§ νμΈνκ³ μΆκ°ν΄μΌ νλ€.
(λλ μμ github ν¬μ€ν μ λ°λΌ μ§μ ~/.ssh/known_hosts μ μΆκ°ν΄μ€ μλ μλ€.)
github μ SSH key fingerprints λ λ€μ μ¬μ΄νΈμμ νμΈν μ μλ€.
GitHub's SSH key fingerprints - GitHub Docs
Public key fingerprints can be used to validate a connection to a remote server.
docs.github.com
λμ κ²½μ°, ECDSA key fingerprint λ₯Ό νμΈνκ³ push ν μ μμλ€.
λ°λμ fingerprint κ° λ§λμ§ νμΈνκ³ 'yes' νμ΄ν ν κ²!
κ·Έλ¦¬κ³ νΉμλ μ΄ λ€μλ κ³μ github λ₯Ό μ λ’°ν κ±΄μ§ λ¬Όμ΄λ³Έλ€λ©΄, known_hosts μ λ¬Έμ κ° μλ κ²μ΄λ―λ‘ λ€μ νμΈν κ²!
λμ κ²½μ°μ, known_hosts νμΌμ λ host key κ° λ±λ‘λμ΄ μμ΄μ κ³μ νμΈ λ©μμ§κ° λ΄μλ€.
κ·Έλμ λ€μ ν΄λΉ νμΌμ μμ ν΄μ€ λ€ μ§ννλ push κ° μ λμλ€!