易截截图软件、单文件、免安装、纯绿色、仅160KB

secureCRT连接Linux出错

用secureCRT连接Linux时出现如下错误:The remote system refused the connection.
1、查询sshd工作状态
#service sshd status
显示stop
2、运行#service sshd restart
显示Permissions 0777 for '/etc/ssh/ssh_host_rsa_key' are too open等一些权限错误
3、修改/etc/ssh下的密钥权限
#chmod 600 sshd_config
#chmod 600 ssh_host_dsa_key
#chmod 600 ssh_host_key ssh_host_rsa_key
#chmod 620 moduli
#chmod 644 ssh_config
#chmod 644 ssh_host_dsa_key.pub
#chmod 644 ssh_host_key.pub
#chmod 644 ssh_host_rsa_key.pub
4、然后在运行service sshd restart还是显示Starting sshd: Could not load host key: /etc/ssh/ssh_host_dsa_key./var/empty/sshd must be owned by root and not group or world-writable.错误,问题应是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]
  #
  使用rpm -V 命令可检查到ssh的软件包正常,但某个目录的属主错误。
  # rpm -V openssh-server
  S.5..... c /etc/ssh/sshd_config
  .....U.. /var/empty/sshd
  #
  经查看发现这个目录的属主不是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: [ OK ]
  #
  至此问题修复。
  另外,还可以尝试:
  这个是权限的问题
  可采取以下两步解决
  chown -R root.root /var/empty/sshd
  chmod 744 /var/empty/sshd
  service sshd restart
  就可以解决上述的问题。


相关文档:

linux 启动问题 ( sendmail )


问题描述:
        当linux启动到sendmail服务时,无法正常进入系统
解决问题:
      1、并不是无法进去,而是这一个服务启动的特别慢,所以敬请等待
      2、如启动时不想等待,OK,那当我们进入以后,关掉sendmail服务: ......

Linux设备模型之tty驱动架构分析


Linux设备模型之tty驱动架构分析
 
来源: ChinaUnix博客  日期: 2008.07.25 16:24 (共有0条评论) 我要评论
 
------------------------------------------
本文系本站原创,欢迎转载!
转载请注明出处:http://ericxiao.cublog.cn/
------------------------------------------
一:前言
Tty这个名称 ......

linux fg bg ctrl + z jobs & 等命令

fg、bg、jobs、&、ctrl + z都是跟系统任务有关的,虽然现在基本上不怎么需要用到这些命令,但学会了也是很实用的
一。& 最经常被用到
   这个用在一个命令的最后,可以把这个命令放到后台执行
二。ctrl + z
     可以将一个正在前台执行的命令放到后台,并且暂停
三。jobs
 &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号