You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: scp Connection from OL6 to OL9 Fails with Error "no hostkey alg"

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 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!