<?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>未完待续 &#187; SSH</title>
	<atom:link href="http://ioio.name/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://ioio.name</link>
	<description>To Be Continued</description>
	<lastBuildDate>Tue, 22 May 2012 15:29:01 +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>VPS添加SSH帐号</title>
		<link>http://ioio.name/vps-add-ssh-user.html</link>
		<comments>http://ioio.name/vps-add-ssh-user.html#comments</comments>
		<pubDate>Sun, 11 Jul 2010 01:50:50 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=1416</guid>
		<description><![CDATA[有了VPS之后只有一个SSH帐号未免太浪费了，以下是如何新添加一个受限帐户的方法。 查看系统安装的shells: cat /etc/shells 如果没有“/bin/rbash”的话，要把“/bin/rbash”加入到/etc/shells文件里: echo &#34;/bin/rbash&#34; &#62;&#62; /etc/shells 添加一份新用户: useradd -s /bin/rbash -g nobody newuser 为新用户设定密码: passwd newuser 输入两遍新密码后，建立用户成功。 修改新用户的.bash_profile: vim /home/newuser/.bash_profile 将文件修改为: export PATH=/home/newuser 至此，这个帐号就可以登录SSH而不能运行任何命令了。 -EOF- Related posts:[转]我们四川人预注册用户身份验证系统QQ好友地图CentOS 6启用Apache2 WebDAV模块Windows 2003单用户单会话登录远程桌面Copyright &#169; 2005~2011 &#124; Permalink &#124; 2 Comments &#124; Close To U 订阅 Twitter 域名优惠码 Media Temple空间 主机/域名优惠码 )]]></description>
			<content:encoded><![CDATA[<p>有了VPS之后只有一个SSH帐号未免太浪费了，以下是如何新添加一个受限帐户的方法。<br />
查看系统安装的shells:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">cat /etc/shells</pre></div></div>

<p>如果没有“/bin/rbash”的话，要把“/bin/rbash”加入到/etc/shells文件里:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">echo &quot;/bin/rbash&quot; &gt;&gt; /etc/shells</pre></div></div>

<p>添加一份新用户:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">useradd -s /bin/rbash -g nobody newuser</pre></div></div>

<p>为新用户设定密码:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">passwd newuser</pre></div></div>

<p>输入两遍新密码后，建立用户成功。 </p>
<p>修改新用户的.bash_profile:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">vim /home/newuser/.bash_profile</pre></div></div>

<p>将文件修改为:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">export PATH=/home/newuser</pre></div></div>

<p>至此，这个帐号就可以登录SSH而不能运行任何命令了。<br />
-EOF-</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/our-sichuan-people.html" rel="bookmark" title="Permanent Link: [转]我们四川人">[转]我们四川人</a></li><li><a href="http://ioio.name/pre-registered-user-authentication-system.html" rel="bookmark" title="Permanent Link: 预注册用户身份验证系统">预注册用户身份验证系统</a></li><li><a href="http://ioio.name/qq-friends-map.html" rel="bookmark" title="Permanent Link: QQ好友地图">QQ好友地图</a></li><li><a href="http://ioio.name/webdav-on-centos.html" rel="bookmark" title="Permanent Link: CentOS 6启用Apache2 WebDAV模块">CentOS 6启用Apache2 WebDAV模块</a></li><li><a href="http://ioio.name/windows-2003-mstsc-single-user-console.html" rel="bookmark" title="Permanent Link: Windows 2003单用户单会话登录远程桌面">Windows 2003单用户单会话登录远程桌面</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/vps-add-ssh-user.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/vps-add-ssh-user.html#comments">2 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/vps-add-ssh-user.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cool Handle Hosting $9.95/年</title>
		<link>http://ioio.name/cool-handle-hosting-9-95.html</link>
		<comments>http://ioio.name/cool-handle-hosting-9-95.html#comments</comments>
		<pubDate>Sat, 06 Mar 2010 04:20:14 +0000</pubDate>
		<dc:creator>枯藤昏鸦</dc:creator>
				<category><![CDATA[就是不分类]]></category>
		<category><![CDATA[Host]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://ioio.name/?p=948</guid>
		<description><![CDATA[2010年注定是搬家年。 Cool Handle Hosting就是原来的PronetHosting,以经常搞特价主机促销而被人熟知. 2010年3月, Cool Handle Hosting又给大家一个疯狂的特价主机促销. 一年的STARTER Linux Hosting仅需9.95美金. 相比前几次促销, 这次促销的幅度是相当大的. 这款特价主机不包含免费域名 可以绑定5个域名 支持SSH access 无限制空间和流量 购买无需任何优惠码, 系统自动修改费用为9.95美金 一个用户只能使用一次促销 此次促销有效期 3/1/2010 – 3/31/2010. http://www.coolhandle.com/ -EOF- Related posts:免费提供空间使用SVN来管理作业CODE两款开源在线图片存储分享服务程序(mt) Media Temple源代码托管网站Copyright &#169; 2005~2011 &#124; Permalink &#124; 4 Comments &#124; Close To U 订阅 Twitter 域名优惠码 Media Temple空间 主机/域名优惠码 )]]></description>
			<content:encoded><![CDATA[<p><a href="http://ioio.name/wp-content/uploads/2010/03/coolhandle_995.jpg"><img src="http://ioio.name/wp-content/uploads/2010/03/coolhandle_995-300x54.jpg" alt="" title="coolhandle_995" width="300" height="54" class="alignnone size-medium wp-image-949" /></a><br />
2010年注定是搬家年。<br />
Cool Handle Hosting就是原来的PronetHosting,以经常搞特价主机促销而被人熟知.</p>
<p>2010年3月, Cool Handle Hosting又给大家一个疯狂的特价主机促销.<br />
一年的STARTER Linux Hosting仅需9.95美金.<br />
相比前几次促销, 这次促销的幅度是相当大的.<br />
这款特价主机不包含免费域名<br />
可以绑定5个域名<br />
支持SSH access<br />
无限制空间和流量<br />
购买无需任何优惠码, 系统自动修改费用为9.95美金<br />
一个用户只能使用一次促销<br />
此次促销有效期 3/1/2010 – 3/31/2010.</p>
<p><a href="http://x.ioio.name/coolhandle" target="_blank">http://www.coolhandle.com/</a><br />
-EOF-</p>
<hr /><h2>Related posts:</h2><ul><li><a href="http://ioio.name/free-cool-handle-hosting.html" rel="bookmark" title="Permanent Link: 免费提供空间">免费提供空间</a></li><li><a href="http://ioio.name/svn-homework-code.html" rel="bookmark" title="Permanent Link: 使用SVN来管理作业CODE">使用SVN来管理作业CODE</a></li><li><a href="http://ioio.name/open-source-storage-photo-system.html" rel="bookmark" title="Permanent Link: 两款开源在线图片存储分享服务程序">两款开源在线图片存储分享服务程序</a></li><li><a href="http://ioio.name/mt" rel="bookmark" title="Permanent Link: (mt) Media Temple">(mt) Media Temple</a></li><li><a href="http://ioio.name/source-control-system-host.html" rel="bookmark" title="Permanent Link: 源代码托管网站">源代码托管网站</a></li></ul><hr /><small>Copyright &copy; 2005~2011 | <a href="http://ioio.name/cool-handle-hosting-9-95.html" title="Permalink">Permalink</a> | <a href="http://ioio.name/cool-handle-hosting-9-95.html#comments">4 Comments</a> | <a href="http://closetou.com" title="Close To U">Close To U</a> <br />
<a href="http://feeds.feedburner.com/miss">订阅</a> <a href="https://twitter.com/tearnon">Twitter</a> <a href="http://ioio.name/godaddy">域名优惠码</a> <a href="http://ioio.name/mt">Media Temple空间</a>
<a href="http://mdiatemple.com/" title="Domain Sale! $6.89 .com at GoDaddy">主机/域名优惠码</a>
</small> )</small>]]></content:encoded>
			<wfw:commentRss>http://ioio.name/cool-handle-hosting-9-95.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 30/58 queries in 0.056 seconds using disk: basic
Object Caching 719/813 objects using disk: basic

Served from: ioio.name @ 2012-05-23 23:30:27 -->
