CentOS VMware配置未知文件
特別值得一提的是CentOS VMware有很多值得學習的地方,這里我們主要介紹CentOS VMware,包括介紹CentOS VMware等方面。在CentOS VMware安裝一個CentOS的Sever版,終端里的內(nèi)容不可滾動,不方便。在win下遠程登錄不錯(win下有個Xshell)。默認安裝ssh是有的。只是hosts訪問問題。
1.CentOS VMware在hosts.deny文件尾添加sshd:ALL
意思是拒絕所有訪問請求[root@localhost ~]# vi /etc/hosts.deny修改后看起來如下:
- #
- # 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的主機,內(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: [ 確定 ]
- 啟動 sshd [ 確定 ]
好了,用putty和Xshell(Xmanager)可以登錄了。^_^
【編輯推薦】