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

NPM安裝套件遇到MSBUILD : error MSB3428: 無法載入 Visual C++ 元件 "VCBuild.exe"錯誤

最近工作上交接到前端工程師的部分,他是用Angularjs框架來開發產品介面,要佈署開發環境必須要先用npm 安裝他設定好的套件,許多機器都直接npm install安裝到好,其中家裡有一台"乾淨"的windows進行安裝時發生下面的錯誤



乍看之下應該是npm 會用到C++對一些需要的原件做編譯動作,而剛好這台機器也沒安裝VC++相關的套件,所以npm編譯的時候才會失敗,稍微google一下,大致上許多人都是按照錯誤訊息內的建議,去安裝VC++然後補上關聯路徑,不過我倒是看到npm很貼心的提供了一個套件,指令如下

npm install --global --production windows-build-tools



執行前確認是用管理員身分執行 指令視窗, 這個指令會用npm安裝windows上所需的套件,安裝完之後再度執行npm install 就沒發生錯誤了。




留言

這個網誌中的熱門文章

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

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

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