sshを使ったところ、以下のメッセージが出て接続処理に失敗してしまいました。
$ ssh {{sample_host}} Unable to negotiate with UNKNOWN port 65535: no matching host key type found. Their offer: ssh-rsa,ssh-dss Connection closed by UNKNOWN port 65535
回避方法
「~/.ssh/config」 の末尾に以下の設定を加えると接続に成功しました。
Host * HostKeyAlgorithms=+ssh-rsa PubkeyAcceptedAlgorithms=+ssh-rsa
バージョン確認
% ssh -V OpenSSH_9.6p1, LibreSSL 3.3.6
備考
- OpenSSH 8.8 から SHA-1 の RSA 鍵はデフォルトで無効