<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>臭皮匠 &#187; ssh</title>
	<atom:link href="http://guogoul.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://guogoul.com</link>
	<description></description>
	<lastBuildDate>Wed, 07 Jul 2010 04:53:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ssh攻击的发现以及预防</title>
		<link>http://guogoul.com/2008/12/04/ssh_hacker/</link>
		<comments>http://guogoul.com/2008/12/04/ssh_hacker/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 14:16:48 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/12/04/ssh%e6%94%bb%e5%87%bb%e7%9a%84%e5%8f%91%e7%8e%b0%e4%bb%a5%e5%8f%8a%e9%a2%84%e9%98%b2/</guid>
		<description><![CDATA[&#8220;HACKER&#8221; 利用 ssh攻击的目的是想暴力破解服务器的密码，然后控制你的服务器。通常可以从以下两种方式发现：
1. 假如你的服务器突然间一直ssh连接失败,但多次尝试,偶尔还能连接上.
2. 系统日志里面有大量的验证失败的ssh连接请求.
    ubuntu系统是在/var/logs/auth.log里面.
如何进行简单预防:
1.禁用root帐号访问ssh
  做法:只要在/etc/ssh/sshd_config  : PermitRootLogin no
2.RSA公钥认证:
  做法:只要在/etc/ssh/sshd_config  : PasswordAuthentication no
3.修改默认端口:
  一般的攻击都只针对默认22端口.你只要修改到其它端口上就ok.
 做法:只要在/etc/ssh/sshd_config   ort 9922
 注意:别让自己的防火墙把自己的ssh请求给阻挡在外（我就吃过这个亏）

4.一般以上三个方案就ok了，为了安全还可以安装denyhosts。denyhosts可以检查系统日志，检查来访失败的ip,然后把ip列入黑名单。具体请看官方文档
]]></description>
		<wfw:commentRss>http://guogoul.com/2008/12/04/ssh_hacker/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
