[root@li414-184 ~]# /etc/init.d/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 ]
找到地50行:
if [ ! -s $RSA1_KEY -a `cat /proc/sys/crypto/fips_enabled` -eq 0 ]; then
修改为:
if [ ! -s "$RSA1_KEY" -a "'sysctl -n -e crypto.fips_enables'" = 0 ]; then
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 ]
解决如下
vi /etc/init.d/sshd找到地50行:
if [ ! -s $RSA1_KEY -a `cat /proc/sys/crypto/fips_enabled` -eq 0 ]; then
修改为:
if [ ! -s "$RSA1_KEY" -a "'sysctl -n -e crypto.fips_enables'" = 0 ]; then
本文将指导您如何解决sshd启动时遇到的错误,并通过修改配置文件来优化其运行状态。主要内容包括识别错误原因、修改关键配置行、确保系统安全性和提升sshd性能。
1万+

被折叠的 条评论
为什么被折叠?



