While setting up a new system I got this error.

Stopping sshd: [ OK ]
cat: /proc/sys/crypto/fips_enabled: No such file or directory
/etc/init.d/sshd: line 50: [: too many arguments
Starting sshd: [ OK ]

To fix:

vim /etc/init.d/sshd

replace this part on line 50

if [ ! -s $RSA1_KEY -a cat /proc/sys/crypto/fips_enabled -eq 0 ];then


if [ ! -s $RSA1_KEY  ];then



If you enjoyed this post, why not leave a comment or consider a Donation as a token of your appreciation. If you need help implementing something you saw on this site or any other project why not Hire Me?
How to Fix: Centos 6 SSH Stop/Restart Error – cat: /proc/sys/crypto/fips_enabled
Tagged on:                                                                     

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Loading Facebook Comments ...