I need to disable weak ciphers and macs algorithm for ssh on IBMi systems.
I have edited /qopensys/QIBM/UserData/SC1/OpenSSH/etc/sshd_config
Added the following:
MACs hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha2-512
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org
KexAlgorithms ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512
Restarted the ssh server using - strTCPSVR SERVER(*SSHD)
I test it using - ssh -vvv -0 MACs=hmac-sha1 <user@systems.name>
It is still accepting the macs defined here.
How can I disables weak ciphers, MACs and KEX algorithm.
Thanks
------------------------------
Sarvan Veluppillai
------------------------------