<?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>innismir.net &#187; debian</title>
	<atom:link href="http://www.innismir.net/article/tag/debian/feed" rel="self" type="application/rss+xml" />
	<link>http://www.innismir.net</link>
	<description>Pointless, vapid ramblings of a surly information security engineer</description>
	<lastBuildDate>Mon, 02 Aug 2010 20:06:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Regenerating your Debian SSH Keys</title>
		<link>http://www.innismir.net/article/32</link>
		<comments>http://www.innismir.net/article/32#comments</comments>
		<pubDate>Thu, 15 May 2008 14:22:47 +0000</pubDate>
		<dc:creator>Ben Jackson</dc:creator>
				<category><![CDATA[Information Security]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[infosec]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[There has been a lot of hub-bub regarding Debian&#8217;s SSL PRNG issues. I&#8217;ve also heard some people saying how this is mostly a non issue or that just upgrading your OpenSSL package will fix it. Let me state, for the record that this issue is bad. Bad Bad. Bad Bad BAD. Just upgrading your packages [...]]]></description>
			<content:encoded><![CDATA[<p>There has been a lot of hub-bub regarding Debian&#8217;s SSL PRNG issues. I&#8217;ve also heard some people saying how this is mostly a non issue or that just upgrading your OpenSSL package will fix it. Let me state, for the record that this issue is bad. Bad Bad. Bad Bad <strong>BAD</strong>. Just upgrading your packages won&#8217;t solve it. You need to regenerate any kind of certificates on your machine after upgrading. The big thing is SSH: If you use SSH on your Debian boxes your need to regenerate your encryption keys immediately. Not doing so put you, and any of your users at risk. You&#8217;re just as safe using telnet.</p>
<p>After googling for a bit there was no clear tutorial on exactly HOW to upgrade your keys in Debian, so I copied and pasted what I did on my Debian box to give a quick tutorial. User input in <strong>Bold</strong>:</p>
<pre>telstar:/home/bbj# <strong>ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ''</strong>
Generating public/private rsa key pair.
/etc/ssh/ssh_host_key already exists.
Overwrite (y/n)? <strong>y</strong>
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
c7:87:51:db:65:7b:d1:58:65:23:85:e0:a2:70:52:68 root@telstar
telstar:/home/bbj# <strong>ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N ''</strong>
Generating public/private rsa key pair.
/etc/ssh/ssh_host_rsa_key already exists.
Overwrite (y/n)? <strong>y</strong>
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
9d:91:02:33:cc:13:8a:7a:67:81:29:e5:50:6d:12:51 root@telstar
telstar:/home/bbj# <strong>ssh-keygen -t dsa -b 1024 -f /etc/ssh/ssh_host_dsa_key -N ''</strong>
Generating public/private dsa key pair.
/etc/ssh/ssh_host_dsa_key already exists.
Overwrite (y/n)? <strong>y</strong>
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
76:1e:ac:8c:49:dd:33:d5:d5:d5:bf:87:60:6f:c0:76 root@telstar
telstar:/home/bbj#</pre>
<p>Voila! If you open up a new SSH session you should get the &#8220;ZOMG THE HOST SSH KEY HAS CHANGED!&#8221; Warning. If you get it, your keys have changed, and you are all set. Enjoy once again being secure.</p>
<p><strong>EDIT:</strong> Of course, not even 20 minutes after I posted this, milw0rm <a href="http://twitter.com/milw0rm">tweeted</a> a new <a href="http://www.milw0rm.com/exploits/5622">exploit</a> for weak Debian keys. So, fix it. Now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.innismir.net/article/32/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
