<?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>haohtml&#039;s blog &#187; ssh</title>
	<atom:link href="http://blog.haohtml.com/index.php/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.haohtml.com</link>
	<description>haohtml&#039;s life and works blog</description>
	<lastBuildDate>Sat, 31 Jul 2010 10:45:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ubuntu开启SSH服务</title>
		<link>http://blog.haohtml.com/index.php/archives/4505</link>
		<comments>http://blog.haohtml.com/index.php/archives/4505#comments</comments>
		<pubDate>Thu, 08 Jul 2010 03:22:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[服务器类]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/?p=4505</guid>
		<description><![CDATA[网上有很多介绍在Ubuntu下开启SSH服务的文章，但大多数介绍的方法测试后都不太理想，均不能实现远程登录到Ubuntu上，最后分析原因是都没有真正开启ssh-server服务。最终成功的方法如下： sudo apt-get install openssh-server Ubuntu缺省安装了openssh-client,所以在这里就不安装了，如果你的系统没有安装的话，再用apt-get安装上即可。 然后确认sshserver是否启动了： ps -e &#124;grep ssh 如果只有ssh-agent那ssh-server还没有启动，需要/etc/init.d/ssh start，如果看到sshd那说明ssh-server已经启动了。 ssh-server配置文件位于/ etc/ssh/sshd_config，在这里可以定义SSH的服务端口，默认端口是22，你可以自己定义成其他端口号，如222。然后重启SSH服务： sudo /etc/init.d/ssh resar ssh连接：ssh xjtu129@202.117.15.165]]></description>
			<content:encoded><![CDATA[<p>网上有很多介绍在Ubuntu下开启SSH服务的文章，但大多数介绍的方法测试后都不太理想，均不能实现远程登录到Ubuntu上，最后分析原因是都没有真正开启ssh-server服务。最终成功的方法如下：</p>
<p><strong>sudo apt-get install openssh-server</strong></p>
<p>Ubuntu缺省安装了openssh-client,所以在这里就不安装了，如果你的系统没有安装的话，再用apt-get安装上即可。</p>
<p>然后确认sshserver是否启动了：</p>
<p><strong>ps -e |grep ssh</strong></p>
<p>如果只有ssh-agent那ssh-server还没有启动，需要/etc/init.d/ssh start，如果看到sshd那说明ssh-server已经启动了。</p>
<p>ssh-server配置文件位于/ etc/ssh/sshd_config，在这里可以定义SSH的服务端口，默认端口是22，你可以自己定义成其他端口号，如222。然后重启SSH服务：</p>
<p><strong>sudo /etc/init.d/ssh resar </strong></p>
<p>ssh连接：ssh xjtu129@202.117.15.165</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/index.php/archives/4505/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何通过ssh修改ip</title>
		<link>http://blog.haohtml.com/index.php/archives/2708</link>
		<comments>http://blog.haohtml.com/index.php/archives/2708#comments</comments>
		<pubDate>Fri, 11 Dec 2009 01:41:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[服务器类]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/index.php/archives/2708</guid>
		<description><![CDATA[Q：有些时候我们需要修改服务器的ip，但服务器又不在本地，只能ssh连接，这个时候怎么办哪？ A：/etc/rc.d/netif restart &#38;&#38; /etc/rc.d/routing restart 以下是freebsd下的相关命令： #关闭网卡 ifconfig network-interface down #启动网卡 ifconfig network-interface up #查看尚未启动的网卡 ifconfig -d #查看已启动网卡 #重启路由 /etc/rc.d/routing restart]]></description>
			<content:encoded><![CDATA[<p>Q：有些时候我们需要修改服务器的ip，但服务器又不在本地，只能ssh连接，这个时候怎么办哪？</p>
<p>A：/etc/rc.d/netif restart &amp;&amp; /etc/rc.d/routing restart</p>
<p>以下是freebsd下的相关命令：</p>
<p>#关闭网卡<br />
ifconfig network-interface down<br />
#启动网卡<br />
ifconfig network-interface up<br />
#查看尚未启动的网卡<br />
ifconfig -d<br />
#查看已启动网卡<br />
#重启路由<br />
/etc/rc.d/routing restart</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/index.php/archives/2708/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Freebsd限定特定IP来使用ssh登录</title>
		<link>http://blog.haohtml.com/index.php/archives/2707</link>
		<comments>http://blog.haohtml.com/index.php/archives/2707#comments</comments>
		<pubDate>Fri, 11 Dec 2009 01:39:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[服务器类]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.haohtml.com/index.php/archives/2707</guid>
		<description><![CDATA[法1. #ee /etc/hosts.allow 在ALL : ALL : allow的前面加上 sshd : your IP : allow sshd : ALL : deny 就OK了。 法2. 修改/etc/ssh/sshd_config 加入 Allowusers admin@172.16.2.188 意思为 只允许admin从172.16.2.188登陆 法3. 防火墙]]></description>
			<content:encoded><![CDATA[<div>法1.</div>
<div><span style="font-size: 13px;">#ee /etc/hosts.allow<br />
在ALL : ALL : allow的前面加上<br />
sshd : your IP : allow<br />
sshd : ALL : deny<br />
就OK了。</span><br />
法2.</div>
<div><span style="font-size: 13px;">修改/etc/ssh/sshd_config<br />
加入<br />
Allowusers admin@172.16.2.188<br />
意思为<br />
只允许admin从172.16.2.188登陆</span></div>
<div><span style="font-size: 13px;">法3.</span></div>
<p><span style="font-size: 13px;">防火墙</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/index.php/archives/2707/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>freebsd ssh 服务器登录失败问题的解决</title>
		<link>http://blog.haohtml.com/index.php/archives/780</link>
		<comments>http://blog.haohtml.com/index.php/archives/780#comments</comments>
		<pubDate>Thu, 01 Jan 2009 11:03:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[服务器类]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.51english.net.cn/?p=780</guid>
		<description><![CDATA[编辑/etc/ssh/sshd_config 保证设置以下参数： PermitRootLogin yes PasswordAuthentication yes UseDNS no LoginGraceTime 0]]></description>
			<content:encoded><![CDATA[<p>编辑/etc/ssh/sshd_config 保证设置以下参数：</p>
<p>PermitRootLogin yes<br />
PasswordAuthentication yes<br />
UseDNS no<br />
LoginGraceTime 0</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/index.php/archives/780/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD下SSH配置</title>
		<link>http://blog.haohtml.com/index.php/archives/778</link>
		<comments>http://blog.haohtml.com/index.php/archives/778#comments</comments>
		<pubDate>Thu, 01 Jan 2009 11:02:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[服务器类]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.51english.net.cn/?p=778</guid>
		<description><![CDATA[sshd的配置文件一般位于/etc/ssh/sshd_config。

　　终端下:#ee /etc/ssh/sshd_config

　　---------------------------------------------

　　#Protocol 2,1

　　修改为：

　　Protocol 2

　　#ListenAddress 0.0.0.0

　　修改为：

　　ListenAddress 0.0.0.0

　　#PermitRootLogin yes

　　修改为

　　PermitRootLogin yes

　　（Linux上默认允许root用户登录，此处可不修改。）]]></description>
			<content:encoded><![CDATA[<p>sshd的配置文件一般位于/etc/ssh/sshd_config。</p>
<p>终端下:#ee /etc/ssh/sshd_config</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>#Protocol 2,1</p>
<p>修改为：</p>
<p>Protocol 2</p>
<p>#ListenAddress 0.0.0.0</p>
<p>修改为：</p>
<p>ListenAddress 0.0.0.0</p>
<p>#PermitRootLogin yes</p>
<p>修改为</p>
<p>PermitRootLogin yes</p>
<p>另把</p>
<p>#PasswordAuthenticationno</p>
<p>PasswordAuthentication yes</p>
<p>即可．</p>
<p>（Linux上默认允许root用户登录，此处可不修改。）</p>
<p>编辑<strong>/etc/rc.conf</strong><br />
最后加入:<strong>sshd_enable=”yes”</strong></p>
<p>修改完成后重启sshd:</p>
<p>/etc/rc.d/sshd restart</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>现在即可ssh登陆.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/index.php/archives/778/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD下如何开启SSH</title>
		<link>http://blog.haohtml.com/index.php/archives/776</link>
		<comments>http://blog.haohtml.com/index.php/archives/776#comments</comments>
		<pubDate>Thu, 01 Jan 2009 11:02:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[服务器类]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.51english.net.cn/?p=776</guid>
		<description><![CDATA[首先vi编辑/etc/inetd.conf,去掉ssh前的#，保存退出
编辑/etc/rc.conf
最后加入:sshd_enable="yes"即可
激活sshd服务：
techo#/etc/rc.d/sshd start
用下面命令检查服务是否启动，在22端口应该有监听。
#netstat -an ## check port number 22
最后
vi /etc/ssh/sshd_config]]></description>
			<content:encoded><![CDATA[<p><span class="content">首先vi编辑/etc/inetd.conf,去掉ssh前的#，保存退出<br />
编辑/etc/rc.conf<br />
最后加入:sshd_enable=&#8221;yes&#8221;即可<br />
激活sshd服务：<br />
techo#/etc/rc.d/sshd start<br />
用下面命令检查服务是否启动，在22端口应该有监听。<br />
#netstat -an ## check port number 22<br />
最后<br />
vi /etc/ssh/sshd_config,</p>
<p>下面是我的配置文件：(/etc/ssh/sshd_config)<br />
####################################################</p>
<p># $OpenBSD: sshd_config,v 1.72 2005/07/25 11:59:40 markus Exp $<br />
# $FreeBSD: src/crypto/openssh/sshd_config,v 1.42.2.1 2005/09/11 16:50:35 des Exp $</p>
<p># This is the sshd server system-wide configuration file. See<br />
# sshd_config(5) for more information.</p>
<p># This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin</p>
<p># The strategy used for options in the default sshd_config shipped with<br />
# OpenSSH is to specify options with their default value where<br />
# possible, but leave them commented. Uncommented options change a<br />
# default value.</p>
<p># Note that some of FreeBSD&#8217;s defaults differ from OpenBSD&#8217;s, and<br />
# FreeBSD has a few additional options.</p>
<p>#VersionAddendum FreeBSD-20050903</p>
<p>#Port 22<br />
#Protocol 2<br />
#AddressFamily any<br />
#ListenAddress 10.1.10.196<br />
#ListenAddress ::</p>
<p># HostKey for protocol version 1<br />
#HostKey /etc/ssh/ssh_host_key<br />
# HostKeys for protocol version 2<br />
#HostKey /etc/ssh/ssh_host_dsa_key</p>
<p># Lifetime and size of ephemeral version 1 server key<br />
#KeyRegenerationInterval 1h<br />
#ServerKeyBits 768</p>
<p># Logging<br />
# obsoletes QuietMode and FascistLogging<br />
#SyslogFacility AUTH<br />
#LogLevel INFO</p>
<p># Authentication:</p>
<p>#LoginGraceTime 2m<br />
#PermitRootLogin no<br />
#StrictModes yes<br />
#MaxAuthTries 6</p>
<p>#RSAAuthentication yes<br />
#PubkeyAuthentication yes<br />
#AuthorizedKey .ssh/authorized_keys<br />
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts<br />
#RhostsRSAAuthentication no<br />
# similar for protocol version 2<br />
#HostbasedAuthentication no<br />
# Change to yes if you don&#8217;t trust ~/.ssh/known_hosts for<br />
# RhostsRSAAuthentication and HostbasedAuthentication<br />
#IgnoreUserKnownHosts no<br />
# Don&#8217;t read the user&#8217;s ~/.rhosts and ~/.shosts files<br />
#IgnoreRhosts yes</p>
<p># Change to yes to enable built-in password authentication.<br />
PasswordAuthentication yes<br />
#PermitEmptyPasswords no</p>
<p># Change to no to disable PAM authentication<br />
#ChallengeResponseAuthentication yes</p>
<p># Kerberos options<br />
#KerberosAuthentication no<br />
#KerberosOrLocalPasswd yes<br />
#KerberosTicketCleanup yes<br />
#KerberosGetAFSToken no</p>
<p># GSSAPI options<br />
#GSSAPIAuthentication no<br />
#GSSAPICleanupCredentials yes</p>
<p># Set this to &#8216;no&#8217; to disable PAM authentication, account processing,<br />
# and session processing. If this is enabled, PAM authentication will<br />
# be allowed through the ChallengeResponseAuthentication mechanism.<br />
# Depending on your PAM configuration, this may bypass the setting of<br />
# PasswordAuthentication, PermitEmptyPasswords, and<br />
# &#8220;PermitRootLogin without-password&#8221;. If you just want the PAM account and<br />
# session checks to run without PAM authentication, then enable this but set<br />
# ChallengeResponseAuthentication=no<br />
#UsePAM yes</p>
<p>#AllowTcpForwarding yes<br />
#GatewayPorts no<br />
#X11Forwarding yes<br />
#X11DisplayOffset 10<br />
#X11UseLocalhost yes<br />
#PrintMotd yes<br />
#PrintLastLog yes<br />
#TCPKeepAlive yes<br />
#UseLogin no<br />
#UsePrivilegeSeparation yes<br />
#PermitUserEnvironment no<br />
#Compression delayed<br />
#ClientAliveInterval 0<br />
#ClientAliveCountMax 3<br />
#UseDNS no<br />
#PidFile /var/run/sshd.pid<br />
#MaxStartups 10</p>
<p># no default banner path<br />
#Banner /some/path</p>
<p># override default of no subsystems<br />
Subsystem sftp /usr/libexec/sftp-server</p>
<p>IgnoreRhosts yes<br />
IgnoreUserKnownHosts yes<br />
PrintMotd yes<br />
StrictModes no<br />
RSAAuthentication yes<br />
PermitRootLogin yes #允许root登录<br />
PermitEmptyPasswords no #不允许空密码登录<br />
PasswordAuthentication yes # 设置是否使用口令验证。</p>
<p>##############################################</p>
<p>记得修改完配置文件后，重新启动sshd服务器(/etc/rc.d/sshd restart)即可。</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.haohtml.com/index.php/archives/776/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
