<?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>High Tech Sorcery &#187; security</title>
	<atom:link href="http://hightechsorcery.com/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://hightechsorcery.com</link>
	<description>technology indistinguishable from magic</description>
	<lastBuildDate>Tue, 01 May 2012 08:48:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Setting up a user with only scp and sftp access</title>
		<link>http://hightechsorcery.com/2010/01/setting-up-a-user-with-only-scp-and-sftp-access/</link>
		<comments>http://hightechsorcery.com/2010/01/setting-up-a-user-with-only-scp-and-sftp-access/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 01:37:23 +0000</pubDate>
		<dc:creator>specialj</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://hightechsorcery.com/?p=7</guid>
		<description><![CDATA[In the olden days one had to use packages such as scponly and rssh in order to restrict a user account to just being able to use scp and sftp.  Now that functionality is built into OpenSSH.  A client wanted me to setup such an account for 1 user on a system.  I modified sshd_config [...]]]></description>
			<content:encoded><![CDATA[<p>In the olden days one had to use packages such as scponly and rssh in order to restrict a user account to just being able to use scp and sftp.  Now that functionality is built into OpenSSH.  A client wanted me to setup such an account for 1 user on a system.  I modified sshd_config like this:</p>

<div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">Match user username
  ChrootDirectory /home/%u
  ForceCommand internal-sftp
  X11Forwarding no
  AllowTcpForwarding no</pre></div></div>

<p>Note that this only works in Ubuntu 8.10 and later and Debian 5.0 and later.  Also, be aware that the home directry has to be owned by root and not writable by the user for security reason.  So a directory inside the home directory will need to be created for the user to upload any files.</p>
<p><span id="more-7"></span></p>
<p>References:</p>
<ol>
<li><a href="http://www.debian-administration.org/articles/590">OpenSSH SFTP chroot() with ChrootDirectory</a></li>
<li><a href="http://blogs.techrepublic.com.com/opensource/?p=229">Chroot users with OpenSSH: An easier way to confine users to their home directories</a></li>
</ol>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 155px; width: 1px; height: 1px;">
<h1>Chroot users with OpenSSH: An easier way to confine users to their home directories</h1>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hightechsorcery.com/2010/01/setting-up-a-user-with-only-scp-and-sftp-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

