易截截图软件、单文件、免安装、纯绿色、仅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 配置 telnet

1、查看telent是否安装:rpm  -q 
telnet
      
      [root@localhost root]#rpm -qa Linux telnet
 
      Linux telnet-0.17-25  
      //Linux&n ......

linux下使用svn


这是别人,我只是稍改
     1、将文件checkout到本地目录
svn checkout path(path是服务器上的目录)
例如:svn checkout svn://192.168.1.1/pro/domain
简写:svn co
        2、往版本库中添加新的文件
svn add file
例如:svn addtest.php(添加test.p ......

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


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

linux实用工具

基本实用工具:
ls  显示文件名(list)
cat  显示文本文件内容
rm [-i]  删除文件(remove),-i打开选项
less/more  分屏显示文件
hostname  显示系统名
文件操作:
cp SOURCEFILE DESTINATIONFILE  复制文件copy
mv OLDNAME NEWNAME  更改文件名(move)
lpr [-p] FILEN ......

Ubuntu Linux操作系统常用命令详细介绍

sudo apt-get install 软件名 安装软件命令
sudo nautilus 打开文件(有root权限)
su root 切换到“root”
ls 列出当前目录文件(不包括隐含文件)
ls -a 列出当前目录文件(包括隐含文件)
ls -l 列出当前目录下文件的详细信息
cd .. 回当前目录的上一级目录
cd - 回上一次所在的目录
cd ~ 或 cd 回当 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号