no matching host key type found. Their offer: ssh-rsa,ssh-dss
ã¨ããã¨ã©ã¼ã¡ãã»ã¼ã¸ã§sshæ¥ç¶ã§ããªãå ´å㯠~/.ssh/config ã®æ«å°¾ã«ä»¥ä¸ã®ä¸è¡ãå ããã°ã¨ããããæ¥ç¶ã§ããããã«ãªãã¾ã
Host * HostKeyAlgorithms=+ssh-rsa PubkeyAcceptedAlgorithms=+ssh-rsa
説æ
2005å¹´ããã¾ã§ã«è¨å®ãããsshdã§ã¯ï¼ãµã¼ãã®ç½²åã¨ãã¦SHA-1ã®RSAéµãåºãå©ç¨ããã¦ãã¾ããï¼ãããSHA-1ã¯2005å¹´ã«æ»ææ¹æ³ãçºè¦ããï¼2010å¹´ã«ã¯SHA-1ã¯å»æ¢ï¼ããå®å ¨ãªéµã«ç§»è¡ããã¨ããæ¹éã«ãªãã¾ãï¼ããã¦2021å¹´ã¤ãã«OpenSSHãSHA-1ã®éµãããã©ã«ãã§ç¡å¹åãã¾ããï¼
ãã®ããæ°ããOpenSSHã®ã¯ã©ã¤ã¢ã³ã(sshã³ãã³ã)ã§ï¼æªã ã«SHA-1 RSAéµã使ã£ã¦ããå¤ãsshdã«æ¥ç¶ããã¨
no matching host key type found. Their offer: ssh-rsa,ssh-dss
ã¨ããã¨ã©ã¼ãåºã¦sshæ¥ç¶ã§ããªããªãã¾ã
対å¦æ¹æ³
対å¦æ¹æ³ã¯
- ãµã¼ãã¼(sshdå´ï¼ã®ç½²åãæ°ããä½ãç´ã
- ã¯ã©ã¤ã¢ã³ãå´(sshã³ãã³ãå´ï¼ã§å¤ãSHA-1éµã使ããããã«è¨å®ãã
- ã¯ã©ã¤ã¢ã³ãå´(sshã³ãã³ãå´)ãå¤ããã¼ã¸ã§ã³ã«å·»ãæ»ã
ã®3ã¤ããã¾ã
äºçªãã®æ¹æ³ã¯
Host * HostKeyAlgorithms=+ssh-rsa PubkeyAcceptedAlgorithms=+ssh-rsa
ã§ï¼ããã§å ¨ãã¹ã(Host *)ã§ssh-rsaéµã使ããããã«ãªãã¾ã
ã»ãã¥ãªãã£çã«ä¸å®ãæããå ´åã¯
Host *.hogehoge HostKeyAlgorithms=+ssh-rsa PubkeyAcceptedAlgorithms=+ssh-rsa
ã¨è¨å®ããã° ãã¡ã¤ã³hogehoge以ä¸ã®ãµã¼ã(*.hogehoge)ã®ã¿ã§ ssh-rsaã許å¯ã§ãã¾ã