IT貓撲網:您身邊最放心的安全下載站! 最新更新|軟件分類|軟件專題|手機版|論壇轉貼|軟件發(fā)布

您當前所在位置: 首頁操作系統(tǒng)LINUX → 簡介CentOS配置ssh系統(tǒng)技術

簡介CentOS配置ssh系統(tǒng)技術

時間:2015-06-28 00:00:00 來源:IT貓撲網 作者:網管聯(lián)盟 我要評論(0)

CentOS配置ssh已被廣泛應用但是也在不斷的更新,這里介紹CentOS配置ssh安裝設置使用,幫助大家安裝更新CentOS配置ssh系統(tǒng)。絕大部分內容適用于CentOS /RHEL ,同時也適用于其他發(fā)行版本。

VMware安裝一個CentOS的Sever版,終端里的內容不可滾動,不方便。在win下遠程登錄不錯(win下有個Xshell)。默認安裝ssh是有的。只是hosts訪問問題。

1.在hosts.deny文件尾添加CentOS配置ssh:ALL意思是拒絕所有訪問請求[root@localhost ~]# vi /etc/hosts.deny修改后看起來如下:
hosts.denyThis file describes the names of the hyusaosts 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.在hosts.allow文件尾添加CentOS配置ssh:192.168.0.
意思是允許192.168.0.1 到254的主機,內網。
[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配置ssh
[root@localhost ~]# /etc/rc.d/init.d/sshd restart
停止 ssh? [? 確定? ]
啟動 ssh? [? 確定? ]

以上介紹CentOS配置ssh。

關鍵詞標簽:CentOS,ssh

相關閱讀

文章評論
發(fā)表評論

熱門文章 安裝紅帽子RedHat Linux9.0操作系統(tǒng)教程 安裝紅帽子RedHat Linux9.0操作系統(tǒng)教程 Tomcat9.0如何安裝_Tomcat9.0環(huán)境變量配置方法 Tomcat9.0如何安裝_Tomcat9.0環(huán)境變量配置方法 多種操作系統(tǒng)NTP客戶端配置 多種操作系統(tǒng)NTP客戶端配置 Linux操作系統(tǒng)修改IP Linux操作系統(tǒng)修改IP

相關下載

    人氣排行 Linux下獲取CPUID、硬盤序列號與MAC地址 dmidecode命令查看內存型號 linux tc實現(xiàn)ip流量限制 安裝紅帽子RedHat Linux9.0操作系統(tǒng)教程 linux下解壓rar文件 lcx.exe、nc.exe、sc.exe入侵中的使用方法 Ubuntu linux 關機、重啟、注銷 命令 查看linux服務器硬盤IO讀寫負載