CentOS VMware配置未知文件
特別值得一提的是CentOS VMware有很多值得學(xué)習(xí)的地方,這里我們主要介紹CentOS VMware,包括介紹CentOS VMware等方面。在CentOS VMware安裝一個(gè)CentOS的Sever版,終端里的內(nèi)容不可滾動(dòng),不方便。在win下遠(yuǎn)程登錄不錯(cuò)(win下有個(gè)Xshell)。默認(rèn)安裝ssh是有的。只是hosts訪問(wèn)問(wèn)題。
1.CentOS VMware在hosts.deny文件尾添加sshd:ALL
意思是拒絕所有訪問(wèn)請(qǐng)求[root@localhost ~]# vi /etc/hosts.deny修改后看起來(lái)如下:
- #
- # hosts.deny This file describes the names of the hosts which are
- # *not* allowed to use the local INET services, as decided
- # by the '/usr/sbin/tcpd' server.
- #
- # The portmap line is redundant, but it is left to remind you that
- # the new secure portmap uses hosts.deny and hosts.allow. In particular
- # you should know that NFS uses portmap!
- sshd:ALL
2.CentOS VMware在hosts.allow文件尾添加sshd:192.168.0.
意思是允許192.168.0.1 到254的主機(jī),內(nèi)網(wǎng)。
- [root@localhost ~]# vi /etc/hosts.allow
- #
- # hosts.allow This file describes the names of the hosts which are
- # allowed to use the local INET services, as decided
- # by the '/usr/sbin/tcpd' server.
- #
- sshd:192.168.0.
3.CentOS VMware重啟ssh
- [root@localhost ~]# /etc/rc.d/init.d/sshd restart
- 停止 sshd: [ 確定 ]
- 啟動(dòng) sshd [ 確定 ]
好了,用putty和Xshell(Xmanager)可以登錄了。^_^
【編輯推薦】