ssh - yokohama/oreshic-record GitHub Wiki

no matching host key type エラー回避

Message

ssh 接続時に no matching host key type エラーが出る場合の回避方法。
古いサーバーが ssh-rsa のみをサポートしている場合、
-oHostKeyAlgorithms=+ssh-rsa を指定することで許可する。

警告として「post-quantum でない鍵交換アルゴリズム」と表示されるが、
これは量子耐性がないことへの注意喚起であり、
古い OpenSSH サーバーとの互換接続時によく発生する。

恒久対策はサーバー側の OpenSSH をアップグレードすること。

Command

ssh -oHostKeyAlgorithms=+ssh-rsa [email protected]

Result

** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html

Tag

no,matching,host,key,type,rsa

⚠️ **GitHub.com Fallback** ⚠️