OCI: scp Connection from OL6 to OL9 Fails with Error "no hostkey alg"
in Linux
Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Symptoms:
Unable to perform scp data transfer from OL6 to OL9:
# scp <file> root@<hostname>:/<dirname>
no hostkey alg
lost connection
Cause:
Oracle Linux 9 clients can’t connect to SSH servers that don’t support the server-sig-algs extension nor ECDSA hostkeys.
Legacy SSH clients (like Oracle Linux 6) not supporting server-sig-algs extension cannot connect to Oracle Linux 9 servers using RSA authentication keys.
Solution:
On the Oracle Linux 9 instance , activate the SHA1 crypto-policy on top of the DEFAULT policy and then reboot the instance:
# update-crypto-policies --set DEFAULT:SHA1
Tagged:
0