ssh client不支援舊版加密解法

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -l root  x.x.x.x 

請視情況(錯誤訊息), 更改演算法與支援的key

錯誤訊息通常為:

Unable to negotiate with 10.192.130.232 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
Unable to negotiate with 10.192.130.232 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

VirtualBox裝Rocky Linux後,再裝guest additions

  • Insert Guest Additions CD image

此時系統會嘗試安裝, 結果當然失敗

  • 安裝 kernel-devel kernel-headers

yum install kernel-devel-xxxx kernel-headers-xxxx

  • 安裝gcc make perl

yum install gcc make perl

  • 安裝libelf

yum list |grep libelf #找出套件

yum install elfutils-libelf* #後面接星號, 全部安裝

  • 執行 ./VBoxLinuxAdditions.run

當然會失敗

  • 執行 rcvboxadd

/sbin/rcvboxadd quicksetup all

  • 接下來就是再安裝看看 , 有可能會移除, 然後再重安裝一次, 然後重開機
    ./VBoxLinuxAdditions.run