OpenSSH釋出8.8sp1,趕緊測試下更新.
環境還是用CentOS8.3.之前已經更新到8.7sp1.
更新完畢後,測試連接配接ssh,結果失敗,提示如下:
Key exchange failed
no imcompatible hotkey.The server supports these methods: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
嘗試修改配置檔案無果。
仔細檢查,可能編譯安裝時參數有誤,ssl的路徑寫錯了。于是修改改參數如下:
--with-ssl-dir=/usr
再次編譯測試。
./configure --prefix=/usr/ --sysconfdir=/etc/ssh --with-ssl-dir=/usr/local/ssl --with-pam --with-zlib --without-openssl-header-checkmake
make
make install
問題消失