Linux上的ssh无法启动,linux查看与开启ssh

率先通过物理终端步入到linux上,手工检查ssh开掘没运转
/etc/init.d/sshd status
sshd is stopped

 

在机器上一贯登入,难题显得如下:

 

手工业运营服务,发掘告诉权限错误。
/etc/init.d/sshd start
Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.
[FAILED]

在机器上平素登陆,难题显得如下:

/var/empty/sshd must be owned by root and not group or world-writable.

在机械上一向登入,难题显得如下:

应用rpm -V 命令可检查到ssh的软件包符合规律,但有些目录的属主错误。
rpm -V openssh-server
S.5..... c /etc/ssh/sshd_config
.....U.. /var/empty/sshd

/var/empty/sshd must be owned by root and not group or world-writable.

问题:

/var/empty/sshd must be owned by root and not group or world-writable.

经查阅开掘这么些目录的属主不是root,所以运营ssh报错
ls -ld /var/empty/sshd/
d--x--x--x 2 vu00106 root 1024 Feb 2 2005 /var/empty/sshd/
修改为root属主,运行成功
chown root /var/empty/sshd/
/etc/init.d/sshd start
Starting sshd: [Linux上的ssh无法启动,linux查看与开启ssh。 OK ]

问题:

Linux上的SSH无法运行

问题:

从这之后难点修复。
除此以外,还能尝试:
本条是权力的难点
可使用以下两步解决
chown   -R   root.root /var/empty/sshd
chmod 744 /var/empty/sshd
service sshd restart
就能够消除上述的问

Linux上的SSH不能够运转

报告/var/empty/sshd must be owned by root and not group or world-writable.

Linux上的SSH十分的小概运维

/etc/init.d/sshd status sshd is stopped 手工业运转服务,发现告诉权限错误。 /etc/init.d/sshd...

报告/var/empty/sshd must be owned by root and not group or world-writable.

消除办法:

报告/var/empty/sshd must be owned by root and not group or world-writable.

消除办法:

首先通过物理终端进入到linux上,手工业检查ssh开采没运转

化解办法:

率先通过物理终端进入到linux上,手工业检查ssh发掘没运转

-bash-2.05b# /etc/init.d/sshd status

首先通过物理终端步入到linux上,手工业检查ssh开采没运营

-bash-2.05b# /etc/init.d/sshd status

sshd is stopped

-bash-2.05b# /etc/init.d/sshd status

sshd is stopped

手工业运营服务,开采告诉权限错误。

sshd is stopped

手工业运转服务,开采报告权限错误。

-bash-2.05b# /etc/init.d/sshd start

手工业运行服务,开采告诉权限错误。

-bash-2.05b# /etc/init.d/sshd start

Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.

-bash-2.05b# /etc/init.d/sshd start

Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.

[FAILED]

Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.

[FAILED]

-bash-2.05b#

[FAILED]

-bash-2.05b#

运用rpm -V 命令可检查到ssh的软件包符合规律,但某些目录的属主错误。

-bash-2.05b#

应用rpm -V 命令可检查到ssh的软件包平常,但有个别目录的属主错误。

-bash-2.05b# rpm -V openssh-server

行使rpm -V 命令可检查到ssh的软件包寻常,但有些目录的属主错误。

-bash-2.05b# rpm -V openssh-server

S.5….. c /etc/ssh/sshd_config

-bash-2.05b# rpm -V openssh-server

S.5..... c /etc/ssh/sshd_config

…..U.. /var/empty/sshd

S.5..... c /etc/ssh/sshd_config

.....U.. /var/empty/sshd

-bash-2.05b#

.....U.. /var/empty/sshd

-bash-2.05b#

经查阅发掘这几个目录的属主不是root,所以运行ssh报错

-bash-2.05b#

经查阅发掘那个目录的属主不是root,所以运行ssh报错

-bash-2.05b# ls -ld /var/empty/sshd/

经查看发掘这些目录的属主不是root,所以运营ssh报错

-bash-2.05b# ls -ld /var/empty/sshd/

d–x–x–x 2 vu00106 root 1024 Feb 2 2005 /var/empty/sshd/

-bash-2.05b# ls -ld /var/empty/sshd/

d--x--x--x 2 vu00106 root 1024 Feb 2 2005 /var/empty/sshd/

-bash-2.05b#

d--x--x--x 2 vu00106 root 1024 Feb 2 2005 /var/empty/sshd/

-bash-2.05b#

修改为root属主,运转成功

-bash-2.05b#

修改为root属主,运转成功

-bash-2.05b# chown root /var/empty/sshd/

修改为root属主,运营成功

-bash-2.05b# chown root /var/empty/sshd/

-bash-2.05b# /etc/init.d/sshd start

-bash-2.05b# chown root /var/empty/sshd/

-bash-2.05b# /etc/init.d/sshd start

Starting sshd: [ OK ]

-bash-2.05b# /etc/init.d/sshd start

Starting sshd: [ OK ]

-bash-2.05b#

Starting sshd: [ OK ]

-bash-2.05b#

从那之后难点修复。

-bash-2.05b#

迄今难点修复。

除此以外,还足以品味:

迄今停止难题修复。

其它,还足以品味:

本条是权力的主题素材

其他,还足以尝试:

本条是权力的标题

可选择以下两步解决

本条是权力的难点

可选用以下两步消除

chown -R root.root /var/empty/sshd

可应用以下两步消除

chown -R root.root /var/empty/sshd

chmod 744 /var/empty/sshd

chown -R root.root /var/empty/sshd

chmod 744 /var/empty/sshd

service sshd restart

chmod 744 /var/empty/sshd

service sshd restart

service sshd restart

就能够缓慢解决上述的难题。

就能够减轻上述的难题。

/var/empty/sshd must be owned by root and not group or world-writable. 问题: Linux上的SSH不可能运行 报告/var/empty/sshd m...

本文由星彩网app下载发布于星彩网app下载,转载请注明出处:Linux上的ssh无法启动,linux查看与开启ssh

TAG标签: 星彩网app下载
Ctrl+D 将本页面保存为书签,全面了解最新资讯,方便快捷。