<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://liuxinxiu.com:80/freebsd_root_ssh/</link>
<title><![CDATA[【原创】FreeBSD下设置root用户异地登陆sshd(附：FreeBSD SSH配置详解)]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Linux/Unix]]></category>
<pubDate>Sun, 07 Nov 2010 11:47:25 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/freebsd_root_ssh/</guid> 
<description>
<![CDATA[ 
	<p><span style="color: #ff0000"><strong><strong>本次教程使用的是：FreeBSD-8.1</strong></strong></span></p><p><span style="color: #0000ff"><strong>修改freebsd下可以用sshd权限可允许普通用户登录ssh， 但不能用超级用户root用户登录的方法！</strong></span></p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-1.gif"><img height="112" alt="" width="411" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-1.gif" /></a><br /><span style="color: #0000ff"><strong>在/etc/ssh/sshd_config最后中加入 <br /></strong></span>PermitRootLogin yes #允许root登录<br />PermitEmptyPasswords no #不允许空密码登录<br />PasswordAuthentication yes # 设置是否使用口令验证。</p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-2.gif"><img height="220" alt="" width="508" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-2.gif" /></a><br />就可以了=========================================<br /><span style="color: #0000ff"><strong>之后再，vi编辑/etc/inetd.conf,去掉ssh前的#，保存退出 (开启监听ssh服务)</strong></span></p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-3.gif"><img height="150" alt="" width="387" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-3.gif" /></a></p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-4.gif"><img height="133" alt="" width="691" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-4.gif" /></a><br /><span style="color: #0000ff"><strong>编辑/etc/rc.conf<br /></strong></span>最后加入:sshd_enable=&quot;yes&quot;即可</p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-5.gif"><img height="196" alt="" width="654" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-5.gif" /></a><br /><strong>最后激活sshd服务：<br />techo</strong><span style="color: #ff0000"><strong>#/etc/rc.d/sshd start<br /></strong></span>用下面命令检查服务是否启动，在22端口应该有监听。<br />#netstat -an ## check port number 22<br />===================================================================</p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-6.gif"><img alt="" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-ssh-6.gif" /></a></p><p>***********************************************************************************</p><p>##############################################<br />记得修改完配置文件后，重新启动sshd服务器(/etc/rc.d/sshd restart)即可。 <br />几点补充说明<br />1,如果重启后还是不行请重新载入sshd_config 文件<br />/etc/rc.d/sshd reload<br />2,如果出现using keyboard-interactive authentication<br />password:<br />请确认PasswordAuthentication是否已经改成yes<br />另外如果客户端是putty那么请确认&quot;尝试'智能键盘'认证（SSH-2）&quot;的勾是否有去掉<br />3,如果是使用root帐号登陆<br />请确认密码是否为空<br />空密码无法登陆<br />4请确认是否有安装SSH<br />sysinstall&gt;&gt;&gt;configure&gt;&gt;&gt;networking&gt;&gt;&gt;sshd是否的勾是否有打上<br />&nbsp;</p>
]]>
</description>
</item><item>
<link>http://liuxinxiu.com:80/freebsd_root_ssh/#blogcomment</link>
<title><![CDATA[[评论] 【原创】FreeBSD下设置root用户异地登陆sshd(附：FreeBSD SSH配置详解)]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/freebsd_root_ssh/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>