<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[SSH登录的安全性设置]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[服务器技术]]></category>
<pubDate>Sat, 24 Apr 2010 06:57:31 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	改之前先建立一个登录的用户<br/><br/>1，只允许某个IP登录，拒绝其他所有IP<br/>在 /etc/hosts.allow 写:<br/>sshd: 192.168.1.207<br/>在 /etc/hosts.deny 写:<br/>sshd: ALL<br/><br/>2，禁止某个用户通过ssh登录<br/>在/etc/ssh/sshd_conf添加<br/>AllowUsers 用户名<br/>或者<br/>AllowGroups 组名<br/>或者<br/>DenyUsers 用户名<br/>3、修改默认端口：默认Port为22,并且已经注释掉了；修改是把注释去掉，并修改成其它的端口。<br/>4、禁止root用户远程登陆：修改PermitRootLogin，默认为yes且注释掉了；修改是把注释去掉，并改成no。<br/>5、PermitEmptyPasswords&nbsp;&nbsp; no不允许空密码用户login <br/><br/>Tags - <a href="http://www.dzhope.com/tags/linux/" rel="tag">linux</a> , <a href="http://www.dzhope.com/tags/ssh/" rel="tag">ssh</a> , <a href="http://www.dzhope.com/tags/ssh%25E5%25AE%2589%25E5%2585%25A8/" rel="tag">ssh安全</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] SSH登录的安全性设置]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>