<?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>ItsyourIP.com &#187; Secure Shell(SSH)</title>
	<atom:link href="http://www.itsyourip.com/category/secure-shellssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itsyourip.com</link>
	<description>Your gateway to Internet</description>
	<lastBuildDate>Sat, 24 Jan 2009 16:48:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
<link>http://www.itsyourip.com</link>
<url>http://www.itsyourip.com/wp-content/mbp-favicon/Internet-Alt.ico</url>
<title>ItsyourIP.com</title>
</image>
		<item>
		<title>How To enable Secure Shell (SSH) in Cisco IOS and disable Telnet</title>
		<link>http://www.itsyourip.com/cisco/how-to-enable-secure-shell-ssh-in-cisco-ios-and-disable-telnet/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-enable-secure-shell-ssh-in-cisco-ios-and-disable-telnet</link>
		<comments>http://www.itsyourip.com/cisco/how-to-enable-secure-shell-ssh-in-cisco-ios-and-disable-telnet/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 15:27:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Secure Shell(SSH)]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[telnet]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/cisco/how-to-enable-secure-shell-ssh-in-cisco-ios-and-disable-telnet/</guid>
		<description><![CDATA[Using Telnet for remote administration of Cisco Routers and Switches (infact for any other device like a unix,linux or a solaris seerver) is not very secure as the data including the passwords are sent in clear text. It will only be a matter of time for a malicous attacker who can sniff the packets to [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#content_336_280-->
<p>Using Telnet for remote administration of Cisco Routers and Switches (infact for any other device like a unix,linux or a solaris seerver) is not very secure as the data including the passwords are sent in clear text. It will only be a matter of time for a malicous attacker who can sniff the packets to gain access to the passwords and infact the whole network.</p>
<p>It is recommended that Secure Shell (SSH) is used for remote administration of Cisco Routers and Switches.&nbsp;</p>
<p>NOTE: Cisco IOS on the Catalyst switches are by default supplied with the SSH feature bultin. However, the basic Cisco IOS for the routers do not have the SSH facility built-in. To use the SSH feature on Cisco Routers, you need to have the Cisco IOS version with the IPSec(DES or 3DES) encryption software.</p>
<p><span id="more-131"></span></p>
<p>To see if SSH is already enabled</p>
<p><strong><font color="#006600">Router# show ip ssh</font></strong></p>
<p><font color="#006600">%SSH has not been enabled</font></p>
<p>To enable SSH on your Cisco Switch or Router, do the following from the global configuration mode:</p>
<p><strong><u>Configure the Hostname on the Switch or Router</u></strong></p>
<p><font color="#006600"><strong>Router(config)# hostname MyRouter</strong></font></p>
<p><strong><u>Configure the Domain name for the Cisco Switch or Router</u></strong></p>
<p><font color="#006600"><strong>MyRouter(config)# ip domain-name MyDomain</strong></font></p>
<p><strong><u>Generate a RSA Key Pair</u></strong></p>
<p><font color="#006600"><strong>MyRouter(config)# crypto key generate rsa</strong></font></p>
<p>This enables SSH on the Cisco switch or the router.</p>
<p>The following optional commands are recommended but are not mandatory:</p>
<p><strong><u>Set the SSH Negotiation phase timeout interval (in seconds)</u></strong></p>
<p><font color="#006600"><strong>MyRouter(config)# ip ssh time-out 120</strong></font></p>
<p>This sets the time period for the Cisco Router or Switch to wait for 120 seconds before timing out the client during the SSH Negotiation phase.</p>
<p><strong><u>Set the Maximum retry attempts</u></strong></p>
<p><font color="#006600"><strong>MyRouter(config)# ip ssh authetication-retries 3</strong></font></p>
<p>This sets the maximum number of the Authentication retires to be 3 times before the interface (vty) is reset.</p>
<p><strong><u>To change the default port for SSH (default is 22) connection</u></strong></p>
<p><font color="#006600"><strong>MyRouter(config)# ip ssh port 3536</strong></font></p>
<p>This sets the port number to listen for SSH connections to be 3536.</p>
<p>Try to logon and logoff the Cisco IOS Router or switch to ensure it works OK and then disable Telnet access to the switch. This can be done by making SSH as the only transport agent.</p>
<p><font color="#006600"><strong>MyRouter(config)# line vty 0 4<br /> MyRouter(config)# transport input ssh</strong></font></p>
<p>This makes SSH as the only way to connect to the Cisco Routers or Switches remotely.</p>
<p>Write the config changes to the startup-config:</p>
<p><font color="#006600"><strong>MyRouter# wr mem</strong></font></p>
<p>To see the status of the SSH on the Cisco switch or the router</p>
<p><font color="#006600"><strong>MyRouter# show ip ssh</strong></font></p>
<p> <font color="#006600">SSH Enabled &#8211; version 1.5</font></p>
<p><font color="#006600">Authentication timeout: 120 secs; Authentication retries: 3</font></p>
<p>To view the status of SSH connections</p>
<p><font color="#006600"><strong>MyRouter# show ssh</strong></font></p>
<p><font color="#006600">Connection&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Version&nbsp;&nbsp;&nbsp;&nbsp; Encryption&nbsp;State&nbsp; &nbsp;Username</font></p>
<p><font color="#006600">&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3DES&nbsp;&nbsp;&nbsp; Session Started&nbsp;&nbsp;guest</font></p>
<p> If at any time, you want to disable SSH on the Cisco Router or Switch, from the Global Configuration</p>
<p><font color="#006600"><strong>MyRouter(config)# crypto key zeroize rsa</strong></font></p>
<p>This deletes the RSA key-pair. Once you delete the RSA key-pair, it disables the SSH server.</p>
<p>In this case, if you had ssh as the only transport mode then this needs to be changed to default</p>
<p><font color="#006600"><strong>MyRouter(config)# line vty 0 4<br /> MyRouter(config)# transport input telnet</strong></font></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2Fcisco%2Fhow-to-enable-secure-shell-ssh-in-cisco-ios-and-disable-telnet%2F';
  addthis_title  = 'How+To+enable+Secure+Shell+%28SSH%29+in+Cisco+IOS+and+disable+Telnet';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/cisco/how-to-enable-secure-shell-ssh-in-cisco-ios-and-disable-telnet/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
