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

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

最近在使用raspberry Pi當開發機與測試機的時候,有可能會在沒有router或switch的環境下進行,因此會需要直接用網路線作對接的動作,而與windows需要設定的部份有些不同,Ubuntu需要設定的部份也滿簡單,步驟如下

1) 設定網路

首先點選右上角的網路圖示進入編輯連線, 接著編輯接上網路線的有線網路,開啟界面如下圖
























選取 "分享給其他電腦"  ,然後儲存

2)  開啟對接的機器

以我目前的範例,就是將raspberry Pi開機,當然網路線也都已經接上。
如此raspberry Pi就會以當作host的電腦為主,網卡自動抓dhcp分配的ip 。

3)  掃描串接的機器ip

由於當下raspberry Pi沒有接螢幕,因此無法直接知道它自動抓到的ip為何,這時可用掃ip的工具來取得,先觀看電腦的有線網路ip為多少,以我的範例而言如下圖








通常當作host的機器網段的ip都會是1開始,接下來我使用的工具是nmap,如果沒安裝可使用apt-get去補上。

使用的指令以此範例 即為 nmap -sS 10.42.0.1/24    (此-sS參數可掃出所有網路port號)














由上結果可看到 有一ip為10.42.0.117的機器發布了ssh與http服務。
到此就到一段落,可以繼續用ssh連去raspberry Pi進行開發測試了 。

留言

這個網誌中的熱門文章

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

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