<?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>fish的航海日志 &#187; 安全</title>
	<atom:link href="http://blog.v2op.com/tag/%e5%ae%89%e5%85%a8/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.v2op.com</link>
	<description>海到无边天做岸,山登绝顶我为峰</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:30:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linux下禁止root帐户远程登录</title>
		<link>http://blog.v2op.com/2008/06/linux%e4%b8%8b%e7%a6%81%e6%ad%a2root%e5%b8%90%e6%88%b7%e8%bf%9c%e7%a8%8b%e7%99%bb%e5%bd%95/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux%25e4%25b8%258b%25e7%25a6%2581%25e6%25ad%25a2root%25e5%25b8%2590%25e6%2588%25b7%25e8%25bf%259c%25e7%25a8%258b%25e7%2599%25bb%25e5%25bd%2595</link>
		<comments>http://blog.v2op.com/2008/06/linux%e4%b8%8b%e7%a6%81%e6%ad%a2root%e5%b8%90%e6%88%b7%e8%bf%9c%e7%a8%8b%e7%99%bb%e5%bd%95/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 05:51:48 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=129</guid>
		<description><![CDATA[最近很多人问我这个问题：“用户名root正确，密码也正确，为何死活登录不了公司的服务器？”呃，新手学习linux时都几乎都会遇到这种情况，尽管这是个常识。 出于安全考虑，我们通常禁止root帐户直接通过SSH远程登录。 正确的做法是用一个普通用户ssh登录，再使用 su 命令更换身份。 那么如何修改系统，做到禁止root帐户远程登录呢？很简单： 用VI编辑 /etc/ssh/sshd_config 文件 找到这句 #PermitRootLogin yes 修改为（注意：去掉了 # 号） PermitRootLogin no :wq 保存 重启sshd服务器即可 # service sshd restart<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="如何发挥一只镜头的最佳成像" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何发挥一只镜头的最佳成像</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="安全卫士360，Neo!登录成功？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F08%2F%25E5%25AE%2589%25E5%2585%25A8%25E5%258D%25AB%25E5%25A3%25AB360%25EF%25BC%258Cneo%25E7%2599%25BB%25E5%25BD%2595%25E6%2588%2590%25E5%258A%259F%25EF%25BC%259F%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669746.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">安全卫士360，Neo!登录成功？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows分区技巧，如何获得整数分区" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669508.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows分区技巧，如何获得整数分区</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux下shell命令的常用快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Flinux%25E4%25B8%258Bshell%25E5%2591%25BD%25E4%25BB%25A4%25E7%259A%2584%25E5%25B8%25B8%25E7%2594%25A8%25E5%25BF%25AB%25E6%258D%25B7%25E9%2594%25AE%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux下shell命令的常用快捷键</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>最近很多人问我这个问题：“用户名root正确，密码也正确，为何死活登录不了公司的服务器？”呃，新手学习linux时都几乎都会遇到这种情况，尽管这是个常识。</p>
<p>出于安全考虑，我们通常禁止root帐户直接通过SSH远程登录。</p>
<p>正确的做法是用一个普通用户ssh登录，再<strong>使用 su 命令</strong>更换身份。</p>
<p>那么如何修改系统，做到禁止root帐户远程登录呢？很简单：</p>
<p>用VI编辑 /etc/ssh/sshd_config 文件</p>
<p>找到这句</p>
<p>#PermitRootLogin yes</p>
<p>修改为（注意：去掉了 # 号）</p>
<p>PermitRootLogin no</p>
<p>:wq 保存</p>
<p>重启sshd服务器即可</p>
<p># service sshd restart</p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://blog.v2op.com";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=4&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="如何发挥一只镜头的最佳成像" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">如何发挥一只镜头的最佳成像</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="安全卫士360，Neo!登录成功？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F08%2F%25E5%25AE%2589%25E5%2585%25A8%25E5%258D%25AB%25E5%25A3%25AB360%25EF%25BC%258Cneo%25E7%2599%25BB%25E5%25BD%2595%25E6%2588%2590%25E5%258A%259F%25EF%25BC%259F%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669746.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">安全卫士360，Neo!登录成功？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows分区技巧，如何获得整数分区" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669508.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows分区技巧，如何获得整数分区</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux下shell命令的常用快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Flinux%25E4%25B8%258Bshell%25E5%2591%25BD%25E4%25BB%25A4%25E7%259A%2584%25E5%25B8%25B8%25E7%2594%25A8%25E5%25BF%25AB%25E6%258D%25B7%25E9%2594%25AE%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux下shell命令的常用快捷键</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.v2op.com/2008/06/linux%e4%b8%8b%e7%a6%81%e6%ad%a2root%e5%b8%90%e6%88%b7%e8%bf%9c%e7%a8%8b%e7%99%bb%e5%bd%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

