securecrt 连接不上linux
2014-02-17 11:26
393 查看
Linux上的SSH无法启动,报告/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无法启动
报告/var/empty/sshd must be owned by root and not group or world-writable.
解决办法:
首先通过物理终端进入到linux上,手工检查ssh发现没运行
-bash-2.05b# /etc/init.d/sshd status
sshd is stopped
手工启动服务,发现报告权限错误。
-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]
-bash-2.05b#
使用rpm -V 命令可检查到ssh的软件包正常,但某个目录的属主错误。
-bash-2.05b# rpm -V openssh-server
S.5….. c /etc/ssh/sshd_config
…..U.. /var/empty/sshd
-bash-2.05b#
经查看发现这个目录的属主不是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#
修改为root属主,启动成功
-bash-2.05b# chown root /var/empty/sshd/
-bash-2.05b# /etc/init.d/sshd start
Starting sshd: [ OK ]
-bash-2.05b#
至此问题修复。
另外,还可以尝试:
这个是权限的问题
可采取以下两步解决
chown -R root.root /var/empty/sshd
chmod 744 /var/empty/sshd
service sshd restart
就可以解决上述的问题。
ssh指定密钥文件提示错误
大概意思就是说密钥权限的文件不能为777,不能被其他用户读取。
了解了问题后,修改密钥文件权限为700就OK了。chmod -R 700 /etc/ssh,
检查结果进入/etc/ssh ,执行/usr/sbin/sshd.
在机器上直接登录,问题显示如下:
/var/empty/sshd must be owned by root and not group or world-writable.
问题:
Linux上的SSH无法启动
报告/var/empty/sshd must be owned by root and not group or world-writable.
解决办法:
首先通过物理终端进入到linux上,手工检查ssh发现没运行
-bash-2.05b# /etc/init.d/sshd status
sshd is stopped
手工启动服务,发现报告权限错误。
-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]
-bash-2.05b#
使用rpm -V 命令可检查到ssh的软件包正常,但某个目录的属主错误。
-bash-2.05b# rpm -V openssh-server
S.5….. c /etc/ssh/sshd_config
…..U.. /var/empty/sshd
-bash-2.05b#
经查看发现这个目录的属主不是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#
修改为root属主,启动成功
-bash-2.05b# chown root /var/empty/sshd/
-bash-2.05b# /etc/init.d/sshd start
Starting sshd: [ OK ]
-bash-2.05b#
至此问题修复。
另外,还可以尝试:
这个是权限的问题
可采取以下两步解决
chown -R root.root /var/empty/sshd
chmod 744 /var/empty/sshd
service sshd restart
就可以解决上述的问题。
ssh使用秘钥文件连接提示WARNING: UNPROTECTED PRIVATE KEY FILE!
在centos 6.4下使用ssh连接远程主机时,用的是另外一个密钥,需要用-i指明密钥文件,结果提示如下的错误:ssh指定密钥文件提示错误
大概意思就是说密钥权限的文件不能为777,不能被其他用户读取。
了解了问题后,修改密钥文件权限为700就OK了。chmod -R 700 /etc/ssh,
检查结果进入/etc/ssh ,执行/usr/sbin/sshd.
相关文章推荐
- 【Linux】SecureCRT连接虚拟机提示“Connection timed out”
- Windows下使用secureCRT 连接linux虚拟机
- 配置SecureCRT密钥连接Linux
- SecureCRT连接Linux,终端显示中文乱码问题,全方面解决
- SecureCRT 连接本地linux虚拟机(二)
- SecureCRT连接VMWare中Linux
- 8、通过secureCRT连接虚拟机上的linux(2)
- SecureCRT连接VMWare中Linux
- SecureCRT连接linux,vim颜色显示问题
- Linux学习之CentOS(二)----centos连接网络的三种方式及 远程登录管理工具SecureCRT的使用
- SecureCRT连接Linux显示Mysql记录中文乱码
- linux-arm笔记1:ubuntu 下如何安装、破解SecureCRT 软件,连接arm开发板
- SecureCRT连接Linux,Vim颜色显示问题 4步搞定
- 用SecureCRT连接VMware中的Linux系统
- 用secureCRT通过SSH连接你的Linux(本文基于Ubuntu 10.04)
- 配置SecureCRT连接Linux CentOS
- SecureCRT连接Linux--Ubuntu
- 【Linux利用远程SSH连接】SecureCRT中文出现乱码解决办法 Linux服务器技术
- SecureCRT连接虚拟机上的Linux
- 公司用secureCRT连接家里的Linux,家里用无线路由器,公司有上网代理