This is probably not a virtualmin/webmin issue. But I’ve been having this issue in ssh. I restart ssh and I get this message. I’ve searched all over the web for an answer and cant’ find anything and maybe my fellow vmin/wmin gurus can help out:
service sshd restart
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 ]
This is a VPS openvz server with centos 6.2 64bit running latest vmin/wmin from install script.
I recently changed the ssh port and that’s when I started noticing it. Not sure if it was an issue before the change or not. I tested by changing the port back to default 22 but same error message came up after restarting. Here is line 50 of etc/init.d/sshd
if [ ! -s $RSA1_KEY -a cat /proc/sys/crypto/fips_enabled -eq 0 ]; then
There’s obviously no file /proc/sys/crypto/fips_enabled for this either on the server. maybe I just need to create one or something. I just don’t know.
Let me know if anyone has ever seen this or could help out.
Thanks!
Ben
ok, what i did was looked at other sshd files on other servers similar to this one and looked at that line and saw that none of them had that weird file lookup string. So i took that whole if statement from the other sshd file and replaced it and now the sshd starts just fine with no warnings or anything.
I replaced this: if [ ! -s $RSA1_KEY -a cat /proc/sys/crypto/fips_enabled -eq 0 ]; then
echo -n $"Generating SSH1 RSA host key: "
rm -f $RSA1_KEY
if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C ‘’ -N ‘’ >&/dev/null; then
chmod 600 $RSA1_KEY
chmod 644 $RSA1_KEY.pub
if [ -x /sbin/restorecon ]; then
/sbin/restorecon $RSA1_KEY.pub
fi
success $“RSA1 key generation”
echo
else
failure $“RSA1 key generation”
echo
exit 1
fi
fi
}
with this
if [ ! -s $RSA1_KEY ]; then
echo -n $"Generating SSH1 RSA host key: "
rm -f $RSA1_KEY
if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C ‘’ -N ‘’ >&/dev/null; then
chmod 600 $RSA1_KEY
chmod 644 $RSA1_KEY.pub
if [ -x /sbin/restorecon ]; then
/sbin/restorecon $RSA1_KEY.pub
fi
success $“RSA1 key generation”
echo
else
failure $“RSA1 key generation”
echo
exit 1
fi
fi
}
I really don’t know why this line if (! -s $RSA1_KEY -a cat /proc/sys/crypto/fips_enabled -eq 0 ]; then) was in there.