<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>《最小化权限的ssh账号-只能使用TCP转发》的评论</title>
	<atom:link href="http://www.bsdmap.com/2010/02/22/create-tunnel-user/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/</link>
	<description>花开，没有声音……</description>
	<lastBuildDate>Tue, 07 Feb 2012 02:37:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19814</generator>
	<item>
		<title>作者：洪川</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-2/#comment-1399</link>
		<dc:creator>洪川</dc:creator>
		<pubDate>Fri, 11 Mar 2011 02:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1399</guid>
		<description>看这里：http://hi.baidu.com/felixwang/blog/item/7ce2cf1b2fccf7fdaf51338b.html</description>
		<content:encoded><![CDATA[<p>看这里：http://hi.baidu.com/felixwang/blog/item/7ce2cf1b2fccf7fdaf51338b.html</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：nnn</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-2/#comment-1398</link>
		<dc:creator>nnn</dc:creator>
		<pubDate>Wed, 09 Mar 2011 01:40:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1398</guid>
		<description>这里的（也可以用key认证）是怎么弄的呢？我不想每次都要手动输入密码。
我的情况是，我登录到服务器，是有了authorized_keys的，所以不需要输入密码。但我新创建的这个专门用来作ssh tunnel的，就还是需要密码。</description>
		<content:encoded><![CDATA[<p>这里的（也可以用key认证）是怎么弄的呢？我不想每次都要手动输入密码。<br />
我的情况是，我登录到服务器，是有了authorized_keys的，所以不需要输入密码。但我新创建的这个专门用来作ssh tunnel的，就还是需要密码。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：ssh 代理用法 &#38; 设置最小化权限用户 &#124; delectate&#039;s blog</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-2/#comment-1213</link>
		<dc:creator>ssh 代理用法 &#38; 设置最小化权限用户 &#124; delectate&#039;s blog</dc:creator>
		<pubDate>Wed, 08 Dec 2010 12:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1213</guid>
		<description>[...] 权限设置： http://www.bsdmap.com/2010/02/22/create-tunnel-user/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 权限设置： <a href="http://www.bsdmap.com/2010/02/22/create-tunnel-user/" rel="nofollow">http://www.bsdmap.com/2010/02/22/create-tunnel-user/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：vastar</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-2/#comment-1174</link>
		<dc:creator>vastar</dc:creator>
		<pubDate>Sat, 23 Oct 2010 14:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1174</guid>
		<description>谢谢！
找到了自己需要的东西。
我想提供几天试用的ssh。要控制权限～</description>
		<content:encoded><![CDATA[<p>谢谢！<br />
找到了自己需要的东西。<br />
我想提供几天试用的ssh。要控制权限～</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：建立只能使用ssh“转发”功能的系统账户</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-2/#comment-1096</link>
		<dc:creator>建立只能使用ssh“转发”功能的系统账户</dc:creator>
		<pubDate>Sat, 01 May 2010 07:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1096</guid>
		<description>[...] 为了满足“翻墙”的需要，在国外的Linux主机上（比如 DreamHost ）上建个可 ssh登录的用户，使用 ssh 的 Tunnel 来作代理是十分常见的方法。 但是主人往往又想最小化用户权限，以避免对系统造成影响。最简单的办法就是，禁止用户登录。 其实 ssh 可以连接到 sshd 但是不执行远程命令（默认是启动用户设定的 shell ），使用 -N 参数即可。 在服务器上建一个 username ： 添加用户：useradd -s /bin/false  username，将用户的shell设置成/bin/false。这样用户就无法与系统进行交互。 设置密码：passwd username 小技巧： 也可以使用 /usr/bin/passwd 作为用户的 shell ，这样用户就可以通过登录而来自主修改密码。需要注意的是，需要将 /usr/bin/passwd 这一行写进 /etc/shells文件。 sshd 认证通后之后，会检查设定的 shell 是否登记在 /etc/shells 文件中，若已经登记，则fork自己，然后fork出来的子进程再exec 设定的 shell 。而 ssh 的 -N 参数，则是告诉 sshd 不需要执行 shell。 建立Tunnel： ssh -D 1080 -qfnN    username@hostname 输入密码即可使用（也可以用key认证）。 Windows的话，可以使用plink.exe或者MyEnTunnel（MyEnTunnel 本质上也是使用plink.exe来建立Tunnel）。 此时账号username 可以通过sshd的认证使用 TcpForwarding ，但是不能运行 shell，不能与系统交互。刚好可以用来为朋友提供国外的代理翻墙。 参数详解： -D 1080 建立动态Tunnel，监听在本地1080端口。 -q  安静模式。 -f   ssh在后台运行，即认证之后，ssh退居后台。 -n  将 stdio 重定向到 /dev/null，与-f配合使用。 -N  不运行远程程序。即通知 sshd 不运行设定的 shell。     zt from http://www.bsdmap.com/2010/02/22/create-tunnel-user/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 为了满足“翻墙”的需要，在国外的Linux主机上（比如 DreamHost ）上建个可 ssh登录的用户，使用 ssh 的 Tunnel 来作代理是十分常见的方法。 但是主人往往又想最小化用户权限，以避免对系统造成影响。最简单的办法就是，禁止用户登录。 其实 ssh 可以连接到 sshd 但是不执行远程命令（默认是启动用户设定的 shell ），使用 -N 参数即可。 在服务器上建一个 username ： 添加用户：useradd -s /bin/false  username，将用户的shell设置成/bin/false。这样用户就无法与系统进行交互。 设置密码：passwd username 小技巧： 也可以使用 /usr/bin/passwd 作为用户的 shell ，这样用户就可以通过登录而来自主修改密码。需要注意的是，需要将 /usr/bin/passwd 这一行写进 /etc/shells文件。 sshd 认证通后之后，会检查设定的 shell 是否登记在 /etc/shells 文件中，若已经登记，则fork自己，然后fork出来的子进程再exec 设定的 shell 。而 ssh 的 -N 参数，则是告诉 sshd 不需要执行 shell。 建立Tunnel： ssh -D 1080 -qfnN    username@hostname 输入密码即可使用（也可以用key认证）。 Windows的话，可以使用plink.exe或者MyEnTunnel（MyEnTunnel 本质上也是使用plink.exe来建立Tunnel）。 此时账号username 可以通过sshd的认证使用 TcpForwarding ，但是不能运行 shell，不能与系统交互。刚好可以用来为朋友提供国外的代理翻墙。 参数详解： -D 1080 建立动态Tunnel，监听在本地1080端口。 -q  安静模式。 -f   ssh在后台运行，即认证之后，ssh退居后台。 -n  将 stdio 重定向到 /dev/null，与-f配合使用。 -N  不运行远程程序。即通知 sshd 不运行设定的 shell。     zt from <a href="http://www.bsdmap.com/2010/02/22/create-tunnel-user/" rel="nofollow">http://www.bsdmap.com/2010/02/22/create-tunnel-user/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：曹宇伟</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-2/#comment-1067</link>
		<dc:creator>曹宇伟</dc:creator>
		<pubDate>Sat, 24 Apr 2010 19:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1067</guid>
		<description>这样建的用户本来就不可以使用sftp</description>
		<content:encoded><![CDATA[<p>这样建的用户本来就不可以使用sftp</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：ZT：建立只能使用ssh&#8220;转发&#8221;功能的系统账户 &#124; Huang Donghai</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-1065</link>
		<dc:creator>ZT：建立只能使用ssh&#8220;转发&#8221;功能的系统账户 &#124; Huang Donghai</dc:creator>
		<pubDate>Fri, 23 Apr 2010 19:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1065</guid>
		<description>[...] http://www.bsdmap.com/2010/02/22/create-tunnel-user/    分类: 系统网络 标签: ssh        评论 (0) Trackbacks (0) 发表评论 [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.bsdmap.com/2010/02/22/create-tunnel-user/" rel="nofollow">http://www.bsdmap.com/2010/02/22/create-tunnel-user/</a>    分类: 系统网络 标签: ssh        评论 (0) Trackbacks (0) 发表评论 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：帅</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-1046</link>
		<dc:creator>帅</dc:creator>
		<pubDate>Tue, 23 Mar 2010 01:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1046</guid>
		<description>请问下怎么禁止用户的SFTP ?   :lol:</description>
		<content:encoded><![CDATA[<p>请问下怎么禁止用户的SFTP ?   <img src='http://www.bsdmap.com/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：就要发</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-1025</link>
		<dc:creator>就要发</dc:creator>
		<pubDate>Sat, 06 Mar 2010 08:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1025</guid>
		<description>很不错的博客，顶下你</description>
		<content:encoded><![CDATA[<p>很不错的博客，顶下你</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：曹宇伟</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-1004</link>
		<dc:creator>曹宇伟</dc:creator>
		<pubDate>Mon, 22 Feb 2010 16:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1004</guid>
		<description>不能。</description>
		<content:encoded><![CDATA[<p>不能。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：那么蓝</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-1003</link>
		<dc:creator>那么蓝</dc:creator>
		<pubDate>Mon, 22 Feb 2010 16:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1003</guid>
		<description>这样之后，用putty还能登陆么？</description>
		<content:encoded><![CDATA[<p>这样之后，用putty还能登陆么？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：曹宇伟</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-1002</link>
		<dc:creator>曹宇伟</dc:creator>
		<pubDate>Mon, 22 Feb 2010 15:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1002</guid>
		<description>啥样的邮件系统配置啊？
你要干啥？</description>
		<content:encoded><![CDATA[<p>啥样的邮件系统配置啊？<br />
你要干啥？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：知道</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-1001</link>
		<dc:creator>知道</dc:creator>
		<pubDate>Mon, 22 Feb 2010 15:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1001</guid>
		<description>已阅....</description>
		<content:encoded><![CDATA[<p>已阅&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：摇光</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-1000</link>
		<dc:creator>摇光</dc:creator>
		<pubDate>Mon, 22 Feb 2010 15:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-1000</guid>
		<description>你要是再写个邮件系统配置那就完美了哈哈 :grin:</description>
		<content:encoded><![CDATA[<p>你要是再写个邮件系统配置那就完美了哈哈 <img src='http://www.bsdmap.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：摇光</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-999</link>
		<dc:creator>摇光</dc:creator>
		<pubDate>Mon, 22 Feb 2010 14:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-999</guid>
		<description>大家都nice...</description>
		<content:encoded><![CDATA[<p>大家都nice&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：polaris14551 &#124; 摇光 &#187; ZT:最小化权限的ssh账号-只能使用TCP转发</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-998</link>
		<dc:creator>polaris14551 &#124; 摇光 &#187; ZT:最小化权限的ssh账号-只能使用TCP转发</dc:creator>
		<pubDate>Mon, 22 Feb 2010 14:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-998</guid>
		<description>[...] 感谢老曹，本文原址：http://www.bsdmap.com/2010/02/22/create-tunnel-user/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 感谢老曹，本文原址：http://www.bsdmap.com/2010/02/22/create-tunnel-user/ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：曹宇伟</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-997</link>
		<dc:creator>曹宇伟</dc:creator>
		<pubDate>Mon, 22 Feb 2010 05:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-997</guid>
		<description>Nice!</description>
		<content:encoded><![CDATA[<p>Nice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：muxi</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-996</link>
		<dc:creator>muxi</dc:creator>
		<pubDate>Mon, 22 Feb 2010 01:21:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-996</guid>
		<description>很好，正好需要

补充一下：对已有帐号禁止其shell交互使用：
usermod -s /bin/false username</description>
		<content:encoded><![CDATA[<p>很好，正好需要</p>
<p>补充一下：对已有帐号禁止其shell交互使用：<br />
usermod -s /bin/false username</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：muxi</title>
		<link>http://www.bsdmap.com/2010/02/22/create-tunnel-user/comment-page-1/#comment-995</link>
		<dc:creator>muxi</dc:creator>
		<pubDate>Mon, 22 Feb 2010 01:17:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.bsdmap.com/?p=2144#comment-995</guid>
		<description>很好，正好需要</description>
		<content:encoded><![CDATA[<p>很好，正好需要</p>
]]></content:encoded>
	</item>
</channel>
</rss>

