Return to index.
The iLO4 SSH service has problems with handshake fields longer than 512 bytes, whereas a modern OpenSSH 10.6 client sends a HostKeyAlgorithms offer that is 613 bytes at this point, and likewise PuTTY 0.85 sends a KexAlgorithms of 593 bytes, both offering a vast amount of post-quantum algorithms, "security key" algorithms, &c. Either of those results in iLO4 firmware failing to produce a DH key-exchange response (which involves hashing the offer packets from both sides) and instead kicking the client off with a "Client Disconnect" message.
An obvious workaround for OpenSSH then is to limit its offer to just those algorithms which iLO4 supports (either via ~/.ssh/config or ssh -o):
Host <ilo_addr>
HostKeyAlgorithms ssh-rsa
# Optional, for future-proofing in case OpenSSH grows more kex or cipher algos:
# KexAlgorithms diffie-hellman-group14-sha1
# Ciphers aes256-ctr
# MACs hmac-sha2-256
(By default iLO4 supports a few more, but in most cases you want to enable "Encryption > Enforce AES/3DES security" which despite its name disables 3DES and makes the controller only support AES-256/SHA-256 for both SSH and TLS – as well as disabling other obsolete algorithms and TLS versions. When that option is enabled, only a single algorithm of each type is offered by iLO4's SSH.)