no matching host key type found. Their offer: ssh-rsa,ssh-dss

久々にSSHでサーバにログインしようとすると、タイトルのようなエラーが出た。

% ssh sin-cos.com
no matching host key type found. Their offer: ssh-rsa,ssh-dss

以下のオプションを追加するとログイン可能らしい。

% ssh -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=ssh-dss,ssh-rsa sin-cos.com

環境によっては「-oHostKeyAlgorithms=+ssh-rsa」だけでいけるかも。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です