<?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>Linux etc. &#187; OpenWRT</title>
	<atom:link href="http://promberger.info/linux/category/openwrt/feed/" rel="self" type="application/rss+xml" />
	<link>http://promberger.info/linux</link>
	<description>my outsourced memory for your perusal</description>
	<lastBuildDate>Thu, 08 Sep 2011 11:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Get dropbear on OpenWRT to listen on alternate port</title>
		<link>http://promberger.info/linux/2007/12/06/get-dropbear-on-openwrt-to-listen-on-alternate-port/</link>
		<comments>http://promberger.info/linux/2007/12/06/get-dropbear-on-openwrt-to-listen-on-alternate-port/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 22:11:16 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[OpenWRT]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2007/12/06/get-dropbear-on-openwrt-to-listen-on-alternate-port/</guid>
		<description><![CDATA[I was looking for a way to get dropbear, the SSH server on the Linksys (running OpenWRT), to listen on an alternate port, but wasn&#8217;t able to find a configuration file. This tip solved the problem, and another one I didn&#8217;t know I had (how to disable password authentication for remote access, but allow it [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a way to get dropbear, the SSH server on the Linksys (running OpenWRT), to listen on an alternate port, but wasn&#8217;t able to find a configuration file.</p>
<p><a href="http://joesbitbucket.blogspot.com/2006/10/disabling-password-authentication-on.html">This tip</a> solved the problem, and another one I didn&#8217;t know I had (how to disable password authentication for remote access, but allow it for local access). </p>
<p>The short version, just edit</p>
<pre>/etc/init.d/S50dropbear</pre>
<p>to start dropbear with the desired options (<code>dropbear --help</code>), and for the remote vs local access, start two instances on different ports, then set your firewall to only allow outside access to the dropbear instance that disallows password access.</p>
<p>And since this is my outsourced memory and I have to edit files on OpenWRT using <code>vi</code>, here&#8217;s a quick list of commands:</p>
<ul>
<li><code>i</code> before you insert anything</li>
<li><code>esc</code> to get back into command mode.</li>
<li><code>yy</code> from command mode, to copy the current line,</li>
<li><code>p</code> to insert the copied line after the cursor.</li>
<li><code>:wq</code> to write changes and quit</li>
<li><code>:q!</code> to quit without writing changes, if you&#8217;ve screwed up.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/12/06/get-dropbear-on-openwrt-to-listen-on-alternate-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

