ssh 出現 error in libcrypto Connection closed 錯誤訊息

 最近公司的產品OS更換到Alma Linux,因此安裝了一台全新的Alma Linux機器,然後接下來要使用scp去別的主機搬移檔案的時候出現了下面的錯誤訊息 The authenticity of host '10.*.*.68 (10.*.*.68)' can't be established. RSA key fingerprint is SHA256:RKJMaNXf4Fw5I2rjsdiLr17MQn1LTyMurlb6hV2qo18. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.*.*.68' (RSA) to the list of known hosts. ssh_dispatch_run_fatal: Connection to 10.*.*.68 port 22: error in libcrypto Connection closed 解決方法是指定加密演算法 update-crypto-policies --set DEFAULT:SHA1

Centos : yum encounter pycurl error 77 SSL CA cert problem

有時候在新安裝好的centos機器上面佈署開發環境後,要使用YUM 去對某些已經安裝好的軟體進行upgrade的時候會出現下面的錯誤


PYCURL ERROR 77 - "Problem with the SSL CA Cert (path? access rights?)" Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again.


查了許多文章,這個問題的原因主要是系統環境的 ssl certificate 目錄不存在或是檔案消失造成,

簡單有效的方式就是將openssl相關模組重新安裝一次,使用yum 指令如下



# yum reinstall openssl
# yum reinstall ca-certificates



之後 就不會再發生錯誤了。

留言

這個網誌中的熱門文章

排解Mysql 發生ERROR 2003 (HY000): Can't connect to MySQL server on "host" (111) 無法連線之錯誤

如何使用網路線將Ubuntu與raspberry Pi 對接

Linux -- shell script 取得unix timestamp 並且產出時間字串