<?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>VPS侦探 &#187; 连接时间</title>
	<atom:link href="http://www.vpser.net/tag/%e8%bf%9e%e6%8e%a5%e6%97%b6%e9%97%b4/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vpser.net</link>
	<description>致力于VPS主机推荐、VPS管理维护、VPS优惠信息及VPS相关的信息共享平台</description>
	<lastBuildDate>Mon, 06 Feb 2012 01:24:08 +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 VPS延长SSH连接时间设置</title>
		<link>http://www.vpser.net/manage/linux-vps-ssh-clientalivecountmax.html</link>
		<comments>http://www.vpser.net/manage/linux-vps-ssh-clientalivecountmax.html#comments</comments>
		<pubDate>Sat, 29 Aug 2009 07:17:31 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[VPS管理维护]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[延长]]></category>
		<category><![CDATA[连接时间]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=461</guid>
		<description><![CDATA[最近公司刚刚买了一台hyper-v的VPS，但是连接SSH服务器刚刚离开一会就断开，不得不需要反复连接服务器，为了使SSH服务器可以保持足够的连接时间，大家可以按以下方法设置: 基于安全的理由，如果用户连线到 SSH Server 后闲置，SSH Server 会在超过特定时间后自动终止 SSH 连线。以下是设定终止连线时间的方法: 1、打开 /etc/ssh/sshd_config 文件，找到一个参数为 ClientAliveCountMax，它是设定用户端的 SSH 连线闲置多长时间后自动终止连线的数值，单位为分钟。 2、如果这一行最前面有#号，将那个#号删除，并修改想要的时间。 3、修改后保存并关闭文件，重新启动 sshd: /etc/rc.d/init.d/sshd restart 相关文章：Linux VPS上DenyHosts阻止SSH暴力攻击Linux VPS下SSH常用命令如何使用Putty远程(SSH)管理Linux VPSBurstNet 2011年6月Windows和Linux VPS优惠码Linux SSH远程文件/目录传输命令scpRAMHOST的VPS小攻略之SSH和OpenVPN安装配置[转]Linux VPS上自动备份文件并发送到Gmail (适用G级数据的备份)(转)Linux VPS上安装KDE, Gnome和VNCLinux VPS上查找后门程序为什么在美国Windows VPS要比Linux VPS贵好多？ © VPSer for VPS侦探, 2009. &#124; Permalink &#124; 3 comments &#124; Add to del.icio.us Post tags: Linux, SSH, VPS, 延长, 连接时间 [...]]]></description>
			<content:encoded><![CDATA[<p>最近公司刚刚买了一台hyper-v的VPS，但是连接SSH服务器刚刚离开一会就断开，不得不需要反复连接服务器，为了使SSH服务器可以保持足够的连接时间，大家可以按以下方法设置:<br />
基于安全的理由，如果用户连线到 SSH Server 后闲置，SSH Server 会在超过特定时间后自动终止 SSH 连线。以下是设定终止连线时间的方法:</p>
<p>1、打开 /etc/ssh/sshd_config 文件，找到一个参数为 ClientAliveCountMax，它是设定用户端的 SSH 连线闲置多长时间后自动终止连线的数值，单位为分钟。</p>
<p>2、如果这一行最前面有#号，将那个#号删除，并修改想要的时间。</p>
<p>3、修改后保存并关闭文件，重新启动 sshd:</p>
<p>/etc/rc.d/init.d/sshd restart</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/security/denyhosts.html" title="Linux VPS上DenyHosts阻止SSH暴力攻击">Linux VPS上DenyHosts阻止SSH暴力攻击</a></li><li><a href="http://www.vpser.net/build/linux-vps-ssh-command.html" title="Linux VPS下SSH常用命令">Linux VPS下SSH常用命令</a></li><li><a href="http://www.vpser.net/other/putty-ssh-linux-vps.html" title="如何使用Putty远程(SSH)管理Linux VPS">如何使用Putty远程(SSH)管理Linux VPS</a></li><li><a href="http://www.vpser.net/coupons/burstnet-2011-june-windows-linux-vps-coupons.html" title="BurstNet 2011年6月Windows和Linux VPS优惠码">BurstNet 2011年6月Windows和Linux VPS优惠码</a></li><li><a href="http://www.vpser.net/manage/scp.html" title="Linux SSH远程文件/目录传输命令scp">Linux SSH远程文件/目录传输命令scp</a></li><li><a href="http://www.vpser.net/build/ramhost-vps-install-ssh-openvpn.html" title="RAMHOST的VPS小攻略之SSH和OpenVPN安装配置[转]">RAMHOST的VPS小攻略之SSH和OpenVPN安装配置[转]</a></li><li><a href="http://www.vpser.net/security/vps-auto-bakup-send-by-gmail.html" title="Linux VPS上自动备份文件并发送到Gmail (适用G级数据的备份)(转)">Linux VPS上自动备份文件并发送到Gmail (适用G级数据的备份)(转)</a></li><li><a href="http://www.vpser.net/manage/linux-vps-install-kde-gnome-vnc.html" title="Linux VPS上安装KDE, Gnome和VNC">Linux VPS上安装KDE, Gnome和VNC</a></li><li><a href="http://www.vpser.net/security/linux-vps-find-backdoor.html" title="Linux VPS上查找后门程序">Linux VPS上查找后门程序</a></li><li><a href="http://www.vpser.net/usa-vps/windows-vps-linux-vps.html" title="为什么在美国Windows VPS要比Linux VPS贵好多？">为什么在美国Windows VPS要比Linux VPS贵好多？</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2009. |
<a href="http://www.vpser.net/manage/linux-vps-ssh-clientalivecountmax.html">Permalink</a> |
<a href="http://www.vpser.net/manage/linux-vps-ssh-clientalivecountmax.html#comments">3 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/manage/linux-vps-ssh-clientalivecountmax.html&title=Linux VPS延长SSH连接时间设置">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/linux" rel="tag">Linux</a>, <a href="http://www.vpser.net/tag/ssh" rel="tag">SSH</a>, <a href="http://www.vpser.net/tag/vps" rel="tag">VPS</a>, <a href="http://www.vpser.net/tag/%e5%bb%b6%e9%95%bf" rel="tag">延长</a>, <a href="http://www.vpser.net/tag/%e8%bf%9e%e6%8e%a5%e6%97%b6%e9%97%b4" rel="tag">连接时间</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/manage/linux-vps-ssh-clientalivecountmax.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

