SSH hoặc git tới server Alma Linux 9 từ các máy chủ có version Linux thấp hơn có thể báo lỗi:
Unable to negotiate with 172.16.28.11 port 22: no matching key exchange method found. Their offer: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,kex-strict-s-v00@openssh.com
Cách xử lý:
Cách 1:
Option 1: In Almalinux 9, execute
update-crypto-policies --set DEFAULT:SHA1
reboot
Cách 2:
Option 2: In Almalinux 9, thêm vào file /etc/crypto-policies/back-ends/opensshserver.config :
RSAMinSize 1024
PubkeyAcceptedKeyTypes +ssh-rsa
rồi reboot