Ubuntu 16.04 – How to Disable Weak SSL Ciphers

ciphersslubuntu-16.04

I have started security scanning my network and have issues with Ubuntu 16 and weak cipher suites. I think I found the sshd config. but everything I read on the TLS for apache tells me to go to /etc/httpd which I do not have the directory. I see openssl ciphers but I can seem to figure out how to disable unwanted ciphers. Can someone point me in the right direction?

Best Answer

openssh does not use TLS so ignore anything that talks about TLS. You will need to modify /etc/ssh/sshd_config. This link may be somewhat dated but is interesting reading. My sshd_config has these lines for the MACs and ciphers

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
MACs hmac-sha1,umac-64@openssh.com,hmac-ripemd160

For web ciphers, edit /etc/apache2/sites-available/ssl.conf. I use

SSLProtocol all -SSLv3 -SSLv2 -TLSv1
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !RC4"
SSLHonorCipherOrder on