SSH Ciphers
Hello,
I am using RHEL 7.2. I understand I can modify /etc/ssh/sshd.config to remove deprecated/insecure ciphers from SSH. However I am unsure which Ciphers are for MD5 or 96-bit MAC algorithms. Could anyone please point me to the correct names to disable?
Thank you in advanced.
JCH
Responses
Hinton / Jason
Doesn't we have to make changes on /etc/ssh/ssh_config. I tried to make below entry on both the files /etc/ssh/sshd_config /etc/ssh/ssh_config
Ciphers aes128-ctr,aes192-ctr,aes256-ctr MACs hmac-sha1,hmac-ripemd160
Please verify
In RHEL6.9, i do not find the below cipher under /etc/ssh/sshd_config, can you please advise me why they are missing
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,arcfour
You can see what ciphers you have by doing this:
sudo sshd -T | grep "\(ciphers\|macs\|kexalgorithms\)"
sshd -T shows full SSHD config file
Also you could try nmap as well:
nmap -vv --script=ssh2-enum-algos.nse localhost
Or another:
gnutls-cli -l
Or:
ssh -Q mac
ssh –vv Servername ciphers listed
ssh –Q kex
ssh -Q cipher
ssh -Q cipher-auth
ssh -Q mac
ssh -Q kex
ssh -Q key
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
