<?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>kb.hurricane-ridge.com &#187; Daemons</title>
	<atom:link href="http://kb.hurricane-ridge.com/category/daemons/feed" rel="self" type="application/rss+xml" />
	<link>http://kb.hurricane-ridge.com</link>
	<description>My personal - but public - knowledge base</description>
	<lastBuildDate>Mon, 09 Jan 2012 14:49:05 +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>Use a non-default port with ssh-copy-id</title>
		<link>http://kb.hurricane-ridge.com/daemons/ssh-daemons/use-a-non-default-port-with-ssh-copy-id</link>
		<comments>http://kb.hurricane-ridge.com/daemons/ssh-daemons/use-a-non-default-port-with-ssh-copy-id#comments</comments>
		<pubDate>Mon, 26 Dec 2011 13:57:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ssh]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[ssh key]]></category>
		<category><![CDATA[ssh-copy-id]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1105</guid>
		<description><![CDATA[Quote a &#8220;-p&#8221; flag specifying the port with the &#8220;user@machine&#8221; portion of the arguments; e.g. for port 2234: Hat tip to Mike Gerwitz for getting me looking in the right direction, although the solution described on his blog does not work with the version of ssh-copy-id I have. (Edit: Looks like the same solution that [...]]]></description>
			<content:encoded><![CDATA[<p>Quote a &#8220;-p&#8221; flag specifying the port with the &#8220;user@machine&#8221; portion of the arguments; e.g. for port 2234:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
ssh-copy-id -i ~/.ssh/id_rsa.pub '-p 2234 user@machine'
</pre>
<p>Hat tip to <a href="http://mikegerwitz.com/2009/10/07/ssh-copy-id-and-sshd-port/">Mike Gerwitz</a> for getting me looking in the right direction, although the solution described on his blog does not work with the version of ssh-copy-id I have.  (<strong>Edit:</strong> Looks like the same solution that I arrived at was pointed out in the comments on the above blog post.)</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/ssh-daemons/use-a-non-default-port-with-ssh-copy-id/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate an SSH Public Key from a Private Key</title>
		<link>http://kb.hurricane-ridge.com/daemons/ssh-daemons/generate-an-ssh-public-key-from-a-private-key</link>
		<comments>http://kb.hurricane-ridge.com/daemons/ssh-daemons/generate-an-ssh-public-key-from-a-private-key#comments</comments>
		<pubDate>Thu, 08 Dec 2011 04:08:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ssh]]></category>
		<category><![CDATA[private]]></category>
		<category><![CDATA[public]]></category>
		<category><![CDATA[ssh-keygen]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1101</guid>
		<description><![CDATA[Use ssh-keygen:]]></description>
			<content:encoded><![CDATA[<p>Use ssh-keygen:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
ssh-keygen -y -f key.pem &gt; key.pub
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/ssh-daemons/generate-an-ssh-public-key-from-a-private-key/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting SSH Key Formats</title>
		<link>http://kb.hurricane-ridge.com/daemons/ssh-daemons/converting-ssh-key-formats</link>
		<comments>http://kb.hurricane-ridge.com/daemons/ssh-daemons/converting-ssh-key-formats#comments</comments>
		<pubDate>Tue, 25 Jan 2011 17:39:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ssh]]></category>
		<category><![CDATA[keypair]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[ssh-keygen]]></category>
		<category><![CDATA[ssh2]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1044</guid>
		<description><![CDATA[To convert an SSH key from SSH2-compatible format to OpenSSH-compatible, use the &#8220;-i&#8221; flag to &#8220;ssh-keygen&#8221;: -i This option will read an unencrypted private (or public) key file in SSH2-compatible format and print an OpenSSH compatible private (or public) key to stdout. ssh-keygen also reads the RFC 4716 SSH Public Key File Format. This option [...]]]></description>
			<content:encoded><![CDATA[<p>To convert an SSH key from SSH2-compatible format to OpenSSH-compatible, use the &#8220;-i&#8221; flag to &#8220;ssh-keygen&#8221;:</p>
<blockquote><p>     -i      This option will read an unencrypted private (or public) key file in SSH2-compatible format and print an OpenSSH compatible private (or public) key to stdout.  ssh-keygen also reads the RFC 4716 SSH Public Key File Format.  This option allows importing keys from several commercial SSH implementations.
</p></blockquote>
<p>e.g.:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
ssh-keygen -i -f user.ssh2.pub &gt; user.ossh.pub
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/ssh-daemons/converting-ssh-key-formats/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selecting Ciphers in Sendmail</title>
		<link>http://kb.hurricane-ridge.com/daemons/sendmail-daemons/selecting-ciphers-in-sendmail</link>
		<comments>http://kb.hurricane-ridge.com/daemons/sendmail-daemons/selecting-ciphers-in-sendmail#comments</comments>
		<pubDate>Thu, 20 Jan 2011 22:40:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sendmail]]></category>
		<category><![CDATA[cipherlist]]></category>
		<category><![CDATA[mta]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[starttls]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1036</guid>
		<description><![CDATA[The best reference that I&#8217;m aware of for this used to be at http://sial.org/howto/sendmail/cipherlist/ &#8211; but DNS to that site is currently broken. The site can be reached by IP address, at least for the time being. Distilled instructions: Assuming you are building from source, add the following to your site.config.m4: Next, rebuild the Sendmail [...]]]></description>
			<content:encoded><![CDATA[<p>The best reference that I&#8217;m aware of for this used to be at http://sial.org/howto/sendmail/cipherlist/ &#8211; but DNS to that site is currently broken.  The <a href="http://72.14.189.113/howto/sendmail/cipherlist/">site</a> can be reached by IP address, at least for the time being.</p>
<p>Distilled instructions:</p>
<ul>
<li>Assuming you are building from source, add the following to your <a href="https://gist.github.com/788662">site.config.m4</a>:
<pre class="brush: plain; light: true; title: ; notranslate">
APPENDDEF(`confENVDEF', `-D_FFR_TLS_1')
</pre>
</li>
<li>Next, rebuild the Sendmail binary; when finished, add the following to your <a href="https://gist.github.com/788659">sendmail.mc</a> and rebuild your sendmail.cf:
<pre class="brush: plain; light: true; title: ; notranslate">
LOCAL_CONFIG
O CipherList=DH
</pre>
<p>(Assuming, for whatever reasons, you want to limit ciphers to Diffie-Hellman varieties.  Adjust as necessary.)
</li>
</ul>
<p>You can verify your CipherList values using OpenSSL:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
&gt; openssl ciphers DH
ADH-AES256-SHA:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:ADH-AES128-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:ADH-DES-CBC3-SHA:ADH-DES-CBC-SHA:EXP-ADH-DES-CBC-SHA:ADH-RC4-MD5:EXP-ADH-RC4-MD5:EDH-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC-SHA:EXP-EDH-RSA-DES-CBC-SHA:EDH-DSS-DES-CBC3-SHA:EDH-DSS-DES-CBC-SHA:EXP-EDH-DSS-DES-CBC-SHA
</pre>
<p>Tested against Sendmail 8.14.1.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/sendmail-daemons/selecting-ciphers-in-sendmail/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Little-Known SSH Features and Tricks</title>
		<link>http://kb.hurricane-ridge.com/daemons/ssh-daemons/little-known-ssh-features-and-tricks</link>
		<comments>http://kb.hurricane-ridge.com/daemons/ssh-daemons/little-known-ssh-features-and-tricks#comments</comments>
		<pubDate>Sat, 27 Nov 2010 21:31:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ssh]]></category>
		<category><![CDATA[keypair]]></category>
		<category><![CDATA[ssh-copy-id]]></category>
		<category><![CDATA[tshark]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1011</guid>
		<description><![CDATA[Many more at 25 BEST SSH COMMANDS / TRICKS; three I didn&#8217;t know: Copy your SSH public key to your authorized_keys on another host: Login to a host you can&#8217;t directly reach, through an intermediary that can reach the host: (The -t flag is necessary to allocate a pseudo-tty.) Use a Wireshark running locally to [...]]]></description>
			<content:encoded><![CDATA[<p>Many more at <a href="http://blog.urfix.com/25-ssh-commands-tricks/">25 BEST SSH COMMANDS / TRICKS</a>; three I didn&#8217;t know:</p>
<ol>
<li>Copy your SSH public key to your authorized_keys on another host:
<pre class="brush: plain; light: true; title: ; notranslate">
ssh-copy-id [-i [identity_file]] [user@]machine
</pre>
</li>
<li>Login to a host you can&#8217;t directly reach, through an intermediary that can reach the host:
<pre class="brush: plain; light: true; title: ; notranslate">
ssh -t reachable_host ssh unreachable_host
</pre>
<p>(The -t flag is necessary to allocate a pseudo-tty.)</li>
<li>Use a Wireshark running locally to inspect traffic that a remote host sees:
<pre class="brush: plain; light: true; title: ; notranslate">
ssh root@example.com tshark -w - not tcp port 22 | wireshark -k -i -
</pre>
<p>or </p>
<pre class="brush: plain; light: true; title: ; notranslate">
ssh root@example.com tcpdump -U -w - not port 22 | wireshark -k -i -
</pre>
<p>(Of course, if you need to inspect SSH traffic, you&#8217;ll need to exclude the IP address of the local host running SSH from the remote tshark or tcpdump command.  Also, the above assumes the use of SSH keypair authentication with the remote host &#8211; see Wireshark&#8217;s <a href="http://wiki.wireshark.org/CaptureSetup/Pipes#Remote_Capture">Pipes</a> page for ideas if you need to enter a password on the command line.)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/ssh-daemons/little-known-ssh-features-and-tricks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send a page range of a PDF to the non-default CUPS Printer</title>
		<link>http://kb.hurricane-ridge.com/daemons/cups/send-a-page-range-of-a-pdf-to-the-non-default-cups-printer</link>
		<comments>http://kb.hurricane-ridge.com/daemons/cups/send-a-page-range-of-a-pdf-to-the-non-default-cups-printer#comments</comments>
		<pubDate>Sat, 27 Nov 2010 20:50:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CUPS]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[lpr]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1018</guid>
		<description><![CDATA[On the command line: Reference: Command-Line Printing and Options]]></description>
			<content:encoded><![CDATA[<p>On the command line:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
lpr -P printer-queue -o page-ranges=1-2 document.pdf
</pre>
<p>Reference: <a href="http://www.cups.org/documentation.php/options.html">Command-Line Printing and Options</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/cups/send-a-page-range-of-a-pdf-to-the-non-default-cups-printer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regenerating an SSH Host Key</title>
		<link>http://kb.hurricane-ridge.com/daemons/ssh-daemons/regenerating-an-ssh-host-key</link>
		<comments>http://kb.hurricane-ridge.com/daemons/ssh-daemons/regenerating-an-ssh-host-key#comments</comments>
		<pubDate>Sat, 27 Feb 2010 00:45:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh-keygen]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=874</guid>
		<description><![CDATA[Use ssh-keygen, just like you would with an account&#8217;s key pair: # ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa # ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa]]></description>
			<content:encoded><![CDATA[<p>Use ssh-keygen, just like you would with an account&#8217;s key pair:</p>
<p><code># ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa<br />
# ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/ssh-daemons/regenerating-an-ssh-host-key/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flush Postfix&#8217;s Mail Queue</title>
		<link>http://kb.hurricane-ridge.com/daemons/postfix/flush-postfixs-mail-queue</link>
		<comments>http://kb.hurricane-ridge.com/daemons/postfix/flush-postfixs-mail-queue#comments</comments>
		<pubDate>Wed, 29 Apr 2009 14:06:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Postfix]]></category>
		<category><![CDATA[mail queue]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=424</guid>
		<description><![CDATA[Sendmail has: sendmail -q The Postfix equivalent is: postqueue -f]]></description>
			<content:encoded><![CDATA[<p>Sendmail has:<br />
<code><br />
sendmail -q<br />
</code></p>
<p>The Postfix equivalent is:<br />
<code><br />
postqueue -f<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/postfix/flush-postfixs-mail-queue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

