文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>CentOS VMware配置未知文件

CentOS VMware配置未知文件

时间:2010-10-03  来源:mydear

特别值得一提的是CentOS VMware有很多值得学习的地方,这里我们主要介绍CentOS VMware,包括介绍CentOS VMware等方面。在CentOS VMware安装一个CentOS的Sever版,终端里的内容不可滚动,不方便。在win下远程登录不错(win下有个Xshell)。默认安装ssh 是有的。只是hosts访问问题。

1.CentOS VMware在hosts.deny文件尾添加sshd:ALL

意思是拒绝所有访问请求[root@localhost ~]# vi /etc/hosts.deny修改后看起来如下:

  1. #
  2. # hosts.deny This file describes the names of the hosts which are
  3. # *not* allowed to use the local INET services, as decided
  4. # by the '/usr/sbin/tcpd' server.
  5. #
  6. # The portmap line is redundant, but it is left to remind you that
  7. # the new secure portmap uses hosts.deny and hosts.allow. In particular
  8. # you should know that NFS uses portmap!
  9. sshd:ALL


2.CentOS VMware在hosts.allow文件尾添加sshd:192.168.0.
意思是允许192.168.0.1 到254的主机,内网。

  1. [root@localhost ~]# vi /etc/hosts.allow
  2. #
  3. # hosts.allow This file describes the names of the hosts which are
  4. # allowed to use the local INET services, as decided
  5. # by the '/usr/sbin/tcpd' server.
  6. #
  7. sshd:192.168.0.

3.CentOS VMware重启ssh

  1. [root@localhost ~]# /etc/rc.d/init.d/sshd restart
  2. 停止 sshd: [ 确定 ]
  3. 启动 sshd [ 确定 ]
好了,用putty和Xshell(Xmanager)可以登录了。
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载