<?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>phirebird &#187; ssh</title>
	<atom:link href="http://www.phirebird.net/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phirebird.net</link>
	<description>Yet Another IT Site</description>
	<lastBuildDate>Sat, 24 Apr 2010 15:27:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enabling SSH on a Cisco Router</title>
		<link>http://www.phirebird.net/2009/05/enabling-ssh-on-a-cisco-router/</link>
		<comments>http://www.phirebird.net/2009/05/enabling-ssh-on-a-cisco-router/#comments</comments>
		<pubDate>Sat, 16 May 2009 09:09:36 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=17</guid>
		<description><![CDATA[So, you want to configure SSH on your Cisco router, eh? Well, it&#8217;s a good choice to make! So how do you do it? Well, first you&#8217;ve got to make sure that your IOS image has IPSec (DES or 3DES) encryption and later than 12.1(1)T &#8211; which you can easily tell from entering the image [...]]]></description>
			<content:encoded><![CDATA[<p>So, you want to configure SSH on your Cisco router, eh? Well, it&#8217;s a good choice to make! So how do you do it? Well, first you&#8217;ve got to make sure that your IOS image has IPSec (DES or 3DES) encryption and later than 12.1(1)T &#8211; which you can easily tell from entering the image filename into the Cisco feature navigator:</p>
<blockquote><p><a href="http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp">http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp</a></p></blockquote>
<p>I&#8217;m running a Cisco 3660 with c3660-ik9o3s-mz.124-6.T.bin which has IPSec and 3DES &#8211; so we&#8217;re good to go.</p>
<p>SSH doesn&#8217;t like a router that doesn&#8217;t have a configured hostname or domain name. So, we&#8217;ll make sure that both of them are done now:</p>
<blockquote><p> Router# conf term<br />
 Router(config)# hostname phbrouter<br />
 phbrouter(config)# ip domain-name phirebird.net<br />
 phbrouter(config)#</p></blockquote>
<p>Right. Now you&#8217;re ready to create an RSA encryption key pair. Whilst generating, you&#8217;ll notice that it asks how many bits you&#8217;d like to use in the modulus. Don&#8217;t accept the default of 512. Instead, select at least 1024 bits.</p>
<blockquote><p> phbrouter(config)# crypto key generate rsa<br />
 The name for the keys will be: phbrouter.phirebird.net<br />
 Choose the size of the key modulus in the range of 360 to 2048<br />
        for your General Purpose Keys. Choosing a key modulus greater than<br />
        512 may take a few minutes.<br />
 How many bits in the modulus [512]: 1024<br />
 % Generating 1024 bit RSA keys &#8230;[OK]<br />
 phbrouter(config)#<br />
 * May  16 10:05:28.283: %SSH-5-ENABLED: SSH 1.99 has been enabled<br />
 phbrouter(config)#</p></blockquote>
<p>To make sure that everything has been configured correctly, you can issue these commands:</p>
<blockquote><p> show ip ssh  (Displays the version and basic configuration)<br />
 show ssh  (Displays the status of any connections)</p></blockquote>
<p>You may stop reading here, but it&#8217;s a good idea to familiarise yourself with the other SSH configuration options open to you:</p>
<blockquote><p>phbrouter(config)#ip ssh ?<br />
  authentication-retries  Specify number of authentication retries<br />
  break-string            break-string<br />
  logging                 Configure logging for SSH<br />
  maxstartups             Maximum concurrent sessions allowed<br />
  port                    Starting (or only) Port number to listen on<br />
  rsa                     Configure RSA keypair name for SSH<br />
  source-interface        Specify interface for source address in SSH<br />
                          connections<br />
  time-out                Specify SSH time-out interval<br />
  version                 Specify protocol version to be supported</p></blockquote>
<p>Most notable here is thatrunning SSH on a differnt port is probably a good idea (but try leaving it on the default 22 and see how many connection attempts you get!). The number of authentication-retries default is 3 &#8211; which is fair enough, and the timeout default is 120 seconds (maybe a bit long?).</p>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0072263830?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51OzKwtnAcL._SL100.jpg" border="0"><br />
Cisco: A Beginner&#8217;s Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470110082?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51BHKGcPzsL._SL100.jpg" border="0"><br />
CCNA &#8211; Cisco Certified Network Associate Study Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/076451668X?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51NAGK3Z2FL._SL100.jpg" border="0"><br />
Cisco Networking for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0596527225?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51HupjWNLoL._SL100.jpg" border="0"><br />
Cisco IOS in a Nutshell &#8211; O&#8217;Reilly</a></td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/05/enabling-ssh-on-a-cisco-router/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enabling SSH under FreeBSD</title>
		<link>http://www.phirebird.net/2009/05/enabling-ssh-under-freebsd/</link>
		<comments>http://www.phirebird.net/2009/05/enabling-ssh-under-freebsd/#comments</comments>
		<pubDate>Sat, 16 May 2009 08:11:41 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=14</guid>
		<description><![CDATA[Anyone that&#8217;s diddled around with SSH under FreeBSD will be all too familiar with this error message when trying to start the SSH daemon directly:
fbsd1# /usr/sbin/sshd
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available &#8212; exiting.
fbsd1#
To keep it happy, you could generate /etc/ssh/ssh_host_dsa_key
manually by using ssh_keygen (as [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone that&#8217;s diddled around with SSH under FreeBSD will be all too familiar with this error message when trying to start the SSH daemon directly:</p>
<blockquote><p>fbsd1# /usr/sbin/sshd<br />
Could not load host key: /etc/ssh/ssh_host_dsa_key<br />
Disabling protocol version 2. Could not load host key<br />
sshd: no hostkeys available &#8212; exiting.<br />
fbsd1#</p></blockquote>
<p>To keep it happy, you <em>could</em> generate /etc/ssh/ssh_host_dsa_key<br />
manually by using ssh_keygen (as you used to in previous FreeBSD releases) - but a much more straight forward way of<br />
enabling it now exists. All you have to do is to edit /etc/rc.conf and tag on this line:</p>
<blockquote><p>sshd_enable=&#8221;YES&#8221;</p></blockquote>
<p>Next time the system starts, it&#8217;ll automatically generate any<br />
necessary keys for you and start accepting SSH requests. If you&#8217;re<br />
of the impatient type and want SSH to start right now, use this:</p>
<blockquote><p>killall sshd<br />
/etc/rc.d/sshd start</p></blockquote>
<p>And that&#8217;s it!</p>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/1593271514?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51lcrjsVnnL._SL100.jpg" border="0"><br />
Absolute FreeBSD: The Complete Guide</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0672324563?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/41ZNFMN301L._SL100.jpg" border="0"><br />
FreeBSD unleashed</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0201702452?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51ARDDYDAVL._SL100.jpg" border="0"><br />
Design and Implementation of FreeBSD</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0979034221?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/41ggxOfBxlL._SL100.jpg" border="0"><br />
The Best of FreeBSD Basics</a></td>
</tr>
</table>
<p>&nbsp;<br />
<br />&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/05/enabling-ssh-under-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
