저만 겪고 있는 상황인지 잘 모르겠는데요.
맥OS 터미널로 TC 리눅스 ssh접속을 서버 부팅후 두번째로 시도하면 아래처럼
"Host key verification failed" 메시지가 항상 나타납니다.
이때 마다 "sudo rm ~/.ssh/known_hosts" 로 파일을 지우고 다시 tc계정 접속을 합니다만,
이렇게 지우지 않고 계속 접속할 수 있는 방법이 있을까요?
------------------------------------------------------------------------
yousuk@Mac-Pro-Ryzen-3500X ~ % ssh tc@192.168.35.53
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:aJjrEGc32kaag1Hpy2C9Rz7A4NrXKo+w7Vu9Vgi5cUU.
Please contact your system administrator.
Add correct host key in /Users/yousuk/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/yousuk/.ssh/known_hosts:1
ECDSA host key for 192.168.35.53 has changed and you have requested strict checking.
Host key verification failed.
±×³É teraterm °°Àº ssh Ŭ¶óÀ̾ðÆ® ¼³Ä¡Çؼ Á¢¼ÓÇÕ´Ï´Ù.
±×·¡¼ ¸ÆÀÇ Å͹̳Π°°Àº °æ¿ì´Â Á÷Àü¿¡ ÀúÀåÇÑ known_hosts¸¦ ´Ù½Ã °»½ÅÇÏ°Ú³Ä°í ¹¯´Â °úÁ¤ÀÌ ¾ø´Â°Í °°±¸¿ä.
¾ÈöÇö´Ô ¸»¾¸´ë·Î Àúµµ ´Ù¸¥ ¾ÛÀ» Çѹø ±¸ÇغýÀ´Ï´Ù.
¸Æ¿ë SSH Ŭ¶óÀ̾ðÆ®¸¦ PortX ¶õ°ÍÀ» ¹Þ¾Æ¼ ½ÃÇèÇØ ºÃ´Âµ¥,
ÀÌ ¹Ù²ï SSH ÀÎÁõÅ°¸¦ ´Ù½Ã ¼ö¶ôÇÏ°Ú³Ä°í ¹°¾îº¸³×¿ä.
SSH Ŭ¶óÀ̾ðÆ®°¡ Á» ¶È¶ÈÇÏ°Ô ¿òÁ÷ÀÌ¸é °¡´ÉÇÑ ÀÏÀÏ°Í °°½À´Ï´Ù. ^^
¾Û½ºÅä¾î ÀÖ´Â°Í °Ë»öÇؼ ¸ÕÀú ¼³Ä¡ÇØ ºÃ´Âµ¥, »ó´Ü¿¡ url ÀÔ·ÂÇؼ Á¢¼ÓÇÏ´Â ±â´É¹Û¿¡ ¾ø´Â°Í °°¾Ò´Âµ¥
¾Æ·¡ »çÀÌÆ®¿¡ °¡º¸´Ï ÅʹϳΠ´ë½Å ·ÎÄà ½©·Îµµ È°¿ëÇÒ ¼ö ÀÖ´Â ¹öÀüÀÌ Àֳ׿ä.
¸Æ¿¡¼ brew util ¹Ì¸® ¼³Ä¡ÇØ µÎ±æ ÀßÇß½À´Ï´Ù.
https://portx.online/ko/
brew install portx Çؼ Àß ¼³Ä¡Çß½À´Ï´Ù.
Å͹̳Îó·³ ·ÎÄà ½©·Î ´ëÄ¡Çؼ ¾²¸é ÁÁÀ»°Í °°³×¿ä.
±âÁ¸ SSH Ŭ¶óÀ̾ðÆ®¾Û°ú ·ÎÄà ½©ÀÇ ÀåÁ¡À» µÑ´Ù ÇÕÃÄµÐ°Í °°¾Æ ¸¾¿¡ µì´Ï´Ù.
°íÁ¤µÈ Å°¸¦ ¿Ã·Á¼ ±×°É·Î µÇ°Ô Çغ¸¼¼¿ä
¿©ÀüÈ÷ ¾È µÈ´Ù¸é Å° ¹ß±ÞÀÚ ½Å·Ú ¹®Á¦´Ï ¼öµ¿À¸·Î Å° »ý¼ºÇؼ ¾÷·ÎµåÇÏ°í, Å° »ý¼º¿¡ »ç¿ëÇÑ CA¸¦ Ŭ¶ó¿¡ Ãß°¡ÇØÁÖ¼¼¿ä