<?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>Cisco Networking Answers &#187; ssh access</title>
	<atom:link href="http://cisco-network.com/tag/ssh-access/feed/" rel="self" type="application/rss+xml" />
	<link>http://cisco-network.com</link>
	<description></description>
	<lastBuildDate>Sun, 08 Apr 2012 23:48:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Network Security first-step</title>
		<link>http://cisco-network.com/book-reviews/network-security-first-step/</link>
		<comments>http://cisco-network.com/book-reviews/network-security-first-step/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 18:39:29 +0000</pubDate>
		<dc:creator>MustafaAksu</dc:creator>
				<category><![CDATA[Book Reviews]]></category>
		<category><![CDATA[book review]]></category>
		<category><![CDATA[network security]]></category>
		<category><![CDATA[ssh access]]></category>

		<guid isPermaLink="false">http://cisco-network.com/?p=68</guid>
		<description><![CDATA[I am writing my first book review here, in my blog after almost two years. I guess, this is the only technical book that I read within this period “Network Security first-step”. Honestly, I do not feel the necessity to read a book. I can easily goggling on the Internet, write on forums or better [...]]]></description>
			<content:encoded><![CDATA[<p>I am writing my first book review here, in my blog after almost two years. I guess, this is the only technical book that I read within this period “Network Security first-step”. Honestly, I do not feel the necessity to read a book. I can easily goggling on the Internet, write on forums or better ask my contracted partner for the necessary info. </p>
<p>I was sitting lazily in the office; one of my colleagues came and said “if you want to order a book this year, find it on Amazon and send me the link until afternoon”. Some ideas flashed in my mind<br />
- No, I don’t need a book<br />
- Maybe, a reference book would be good. No, I am using the Cisco web site , everything is available and searchable.<br />
- Exam preparation books maybe. No they are boring.<br />
- I wanted to find a book, which I could read before sleep. It should be well written, easy to read, but not marketing mambo jumbo, and should have some real purified info.<br />
I started hunting for such a book!</p>
<p><strong>The book “Network Security first-step” </strong><br />
<a href="http://gan.doubleclick.net/gan_click?lid=41000000035222223&#038;pubid=21000000000251350"><img src="http://gan.doubleclick.net/gan_impression?lid=41000000035222223&#038;pubid=21000000000251350" border=0 alt="" /></a><br />
It has been written by Tom Thomas, published by Cisco Press in 2004. The ISBN number is 1-58720-099-6. It has a red cover with a lock on it, 431 pages. It has a price tag of $29.99 at the back of the book.</p>
<p>It is a must read for any IT guy who is into network “security” and has a job that deals with it. If you are teaching any kind of information security courses /classes, then you too need it.   It is also a must read for all those who specialize in network security and also it is suitable for Information security auditors.</p>
<p>It is nice to read if you are CIO or IT technology manager/director and any kind of Networker.</p>
<p><strong>The Content</strong><br />
It starts with the basics of hacking; terminology, methods and organizations that are working against the hackers.<br />
The book speaks about security technologies like ACLs, NAT and TACACS, security protocols like DES, MD5, PPTP and SSH, A full chapter for firewalls, a full chapter for router security. A very clear and detailed VPN chapter has been followed by wireless security. Wireless security includes both technology related titles like WEP, EAP and history of war walking and wireless hacking tools. IDS chapter is so informative and honeypots was a new term for me explained in this chapter. The last chapter is about real world hacking tools. </p>
<p>The most interesting thing in this book for me was second chapter completely dedicated to security policies. Explains basics of building security policies and then it gives some reusable security policy samples.  </p>
<p>Mentioned tools mostly open source tools which you can easily download from the Internet and work on your own in more detail. Related URLs has been given for tools and organizations. This will let you use this book as a start point for your further security studies.</p>
<p>He mentions about his own company (Granite Systems) in some points. I have to say there are some hidden advertising on it. </p>
<p><strong>Conclusion</strong><br />
This book does the trick. Get one copy of it for your own. I am aware, this book has been published in 2004 and I am suggesting it in 2009. I know what I said. There is a second edition of this book that is not published yet. Some people complain about some typo errors in the book. I hope second edition will satisfy them too.</p>
]]></content:encoded>
			<wfw:commentRss>http://cisco-network.com/book-reviews/network-security-first-step/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advanced SSH settings for Cisco IOS</title>
		<link>http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/</link>
		<comments>http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 20:40:28 +0000</pubDate>
		<dc:creator>MustafaAksu</dc:creator>
				<category><![CDATA[Hands-on]]></category>
		<category><![CDATA[cisco router]]></category>
		<category><![CDATA[network security]]></category>
		<category><![CDATA[ssh access]]></category>

		<guid isPermaLink="false">http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/</guid>
		<description><![CDATA[I mentioned about basic SSH setting in SSH@Cisco article. But I saw that there are other questions about SSH settings, so, I decided to delve a bit deeper. The settings mentioned below are tested with IOS 12.4, but I am not sure about exact version that supports below features. Q1. What happens if I changed [...]]]></description>
			<content:encoded><![CDATA[<p>I mentioned about basic SSH setting in <a href="http://cisco-network.com/hands-on/ssh-cisco/" >SSH@Cisco</a> article. But I saw that there are other questions about SSH settings, so, I decided to delve a bit deeper. The settings mentioned below are tested with IOS 12.4, but I am not sure about exact version that supports below features. </p>
<p><strong>Q1. What happens if I changed hostname or ip domain name after SSH settings has been done?</strong><br />
A1. Nothing. You need them to create rsa keys but, but afterwards, if you change them, only the key name changes and key data remain same.</p>
<blockquote><p>ciscolab#<strong>sh crypto key mypubkey rsa </strong><br />
% Key pair was generated at: 13:08:15 UTC Aug 28 2007<br />
Key name: <strong>ciscolab.mydomain.com</strong><br />
 Storage Device: private-config<br />
 Usage: General Purpose Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  30819F30 0D06092A 864886F7 0D010101 05000381 8D003081 89028181 00B67A9F<br />
  EED05E82 FFE41EB0 0CE9BC9E 40D1DD1D CF7AA44F CB5C1029 9502C379 469BF37D<br />
  099082BD 9618CC4E 8314866E 3B26F01B BE3AC27E 33EC7A2D 7FE5B503 3C24500B<br />
  733B391A D2DC4AAF C322C549 8A4638F1 9EAA0FF1 0ABCACD3 B1DF9753 02790FD7<br />
  E6A29602 39EFBAB4 2D4D7119 5C95D403 E1E9EB40 E01A1679 231C2F93 53020301 0001<br />
.<br />
.<br />
ciscolab#conf t<br />
Enter configuration commands, one per line.  End with CNTL/Z.<br />
ciscolab(config)#<strong>hostname sshrouter</strong><br />
sshrouter(config)#end<br />
sshrouter#<strong>sh crypto key mypubkey rsa </strong><br />
% Key pair was generated at: 13:08:15 UTC Aug 28 2007<br />
Key name: <strong>sshrouter.mydomain.com</strong><br />
 Storage Device: private-config<br />
 Usage: General Purpose Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  30819F30 0D06092A 864886F7 0D010101 05000381 8D003081 89028181 00B67A9F<br />
  EED05E82 FFE41EB0 0CE9BC9E 40D1DD1D CF7AA44F CB5C1029 9502C379 469BF37D<br />
  099082BD 9618CC4E 8314866E 3B26F01B BE3AC27E 33EC7A2D 7FE5B503 3C24500B<br />
  733B391A D2DC4AAF C322C549 8A4638F1 9EAA0FF1 0ABCACD3 B1DF9753 02790FD7<br />
  E6A29602 39EFBAB4 2D4D7119 5C95D403 E1E9EB40 E01A1679 231C2F93 53020301 0001<br />
.<br />
.<br />
sshrouter#
</p></blockquote>
<p><strong>Q2. Is there any other way to create RSA keys? </strong><br />
A1. Yes, There is. You can create RSA keys which are labeled by you. In this case, you don’t need a hostname (Always, you will have one) and an IP domain name. </p>
<blockquote><p>ciscolab(config)#<strong>crypto key generate rsa general-keys label TEST</strong><br />
The name for the keys will be: TEST<br />
Choose the size of the key modulus in the range of 360 to 2048 for your<br />
  General Purpose Keys. Choosing a key modulus greater than 512 may take<br />
  a few minutes.</p>
<p>How many bits in the modulus [512]: <strong>1024</strong><br />
% Generating 1024 bit RSA keys, keys will be non-exportable&#8230;[OK]</p>
<p>ciscolab(config)#</p>
<p>Nov 24 20:08:59: %SSH-5-ENABLED: SSH 1.5 has been enabled</p>
</blockquote>
<p><strong><br />
Q3. May I create more than one key?</strong><br />
A3. You can create several keys and chose one of them to use with SSH.You do not need to define which key to be used, but if you want to define, then you have to issue &#8220;ip ssh rsa keypair-name&#8221; command in the configuration mode.</p>
<blockquote><p>ciscolab#<strong>sh crypto key mypubkey rsa </strong><br />
% Key pair was generated at: 20:08:59 UTC Nov 24 2007<br />
Key name: <strong>TEST</strong><br />
 Storage Device: not specified<br />
 Usage: General Purpose Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  30819F30 0D06092A 864886F7 0D010101 05000381 8D003081 89028181 00BDFABF<br />
  948EF1FC 1CFC6C5C F5863980 D7D7B9E6 B256D84F 8F279E2E 63303403 A26E6160<br />
  A2928C87 4F0A846E F8A9FB0A 7D92108F ABD5734C AE7555BC 94CB13D9 41E8E04C<br />
  1514A499 68CC9925 A3DB2CFA 3176A65E 2DC504EE EF5C209E 4D348B20 9C324CBC<br />
  230451DD 96EC090C 99C5FB58 E06876D3 161E758E 486987B7 CD147AB0 0F020301 0001<br />
% Key pair was generated at: 20:08:59 UTC Nov 24 2007<br />
Key name: TEST.server<br />
Temporary key<br />
 Usage: Encryption Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  307C300D 06092A86 4886F70D 01720103 00036B00 30680261 00AEC9A3 4078450F<br />
  B1714135 F66FC617 3083F337 1309D493 654BC77D 4D08DE27 5A54FF44 C4CE0174<br />
  507385A9 99B93D70 4E980CE1 89465B14 00E2C26D A633F1FB C4D08A90 3A8EF761<br />
  EBB41B0D C3EB2190 E4FD1E4B E519A06E 4B6BAE46 4E1FA9D8 C1020301 0001<br />
% Key pair was generated at: 20:11:56 UTC Nov 24 2007<br />
Key name: <strong>CHECK</strong><br />
 Storage Device: not specified<br />
 Usage: General Purpose Key<br />
 Key is not exportable.<br />
 Key Data:<br />
  305C300D 06092A86 4886F70D 01720103 00034B00 30480241 00CCB917 D58E9D45<br />
  BC5EFF15 E2945343 18E5338B 26E1ED9F 869C2B6F 77C27595 8AC0D7B7 9D503F31<br />
  192D08EF C5DE87B5 911779BD 464913CD BB93F883 6F23AE0A 91020301 0001<br />
ciscolab#</p>
<p>ciscolab(config)#<strong>ip ssh rsa keypair-name CHECK</strong>
</p></blockquote>
<p><strong>Q4. May I create more than one session from the same computer like Telnet? </strong><br />
A4. Yes.</p>
<p><strong>Q5. Is it possible to use SSH1 and SSH2 at the same time?</strong><br />
A5. Yes. If you don’t fix the version with “ip ssh version” configuration command. You can use both protocols simultaneously as shown below.</p>
<blockquote><p>ciscolab ><strong>sh ssh </strong><br />
Connection      Version Encryption      State                   Username<br />
0               1.5     <strong>3DES</strong>            Session started         sshtest<br />
Connection Version Mode Encryption  Hmac         State                 Username<br />
1          2.0     IN   <strong>aes256-cbc</strong>  hmac-sha1    Session started       sshtest<br />
1          2.0     OUT  <strong>aes256-cbc</strong>  hmac-sha1    Session started       sshtest<br />
ciscolab></p></blockquote>
<p>As you can see here SSH1 uses 3DES and SSH2 uses AES. </p>
<p><strong>Q6. Does SSH cause a slowdown on my device?</strong><br />
A6. No. I made some tests with both SSH1 and SSH2. Tests have been done on Cisco 7206 VXR, Cisco 3845 and Cisco 1841 with size of key modulus 2048. In the 1841 router, key generation took some time (30-40 seconds).  There was a small delay (1-2 second) when I first connected the device, but the rest of the interaction was same like the telnet. CPU utilization was at %1 and memory was OK.</p>
<p><strong>Q7. I have copied my whole router / switch configuration but SSH does not work. Why?</strong><br />
A7. Did you create an RSA certificate? Crypto key generate command is a configuration mode command, but it is not a part of the configuration. It will be used for creating your RSA certificate then it is gone. So, just copying configuration is not enough. </p>
<p>Please leave a comment if you have any other questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>SSH @ Cisco</title>
		<link>http://cisco-network.com/hands-on/ssh-cisco/</link>
		<comments>http://cisco-network.com/hands-on/ssh-cisco/#comments</comments>
		<pubDate>Sun, 29 Jul 2007 15:45:23 +0000</pubDate>
		<dc:creator>MustafaAksu</dc:creator>
				<category><![CDATA[Hands-on]]></category>
		<category><![CDATA[cisco 3845]]></category>
		<category><![CDATA[cisco router]]></category>
		<category><![CDATA[network security]]></category>
		<category><![CDATA[ssh access]]></category>

		<guid isPermaLink="false">http://cisco-network.com/hands-on/ssh-cisco/</guid>
		<description><![CDATA[Recently, I had to swap the Internet router of my company. BGP and cef ate up the whole memory and it was not possible to upgrade the memory of Cisco 3725 router beyond 256MB. It was time to change it. I had a chance to install a new Cisco 3845 with 1GB memory. Everything was [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I had to swap the Internet router of my company. BGP and cef ate up the whole memory and it was not possible to upgrade the memory of Cisco 3725 router beyond 256MB. It was time to change it.</p>
<p>I had a chance to install a new Cisco 3845 with 1GB memory. Everything was fine except SSH access that I needed because of security policy. I searched the web and found <a target="_blank" href="http://www.cisco.com/warp/public/707/ssh.shtml">“Configuring Secure Shell on Routers and Switches Running Cisco IOS”</a> document on Cisco web site. It was a little bit different than current one. I made a configuration as explained, but it was not good enough and access to the router via SSH was not possible.</p>
<p>About one week later, I realized that </p>
<ul>
<li>SSH only supports authentication with username/password, but it does not support just access password like telnet </li>
<li>So, I had to create a user and set a password with username command</li>
<li>I had to enable aaa new-model OR issue login local command under line vty for username/password authentication. </li>
<li> Also a hostname and a domain name were required to generate the keys, since router uses its FQDN as the label of the key pair.</li>
<li>SSH is enabled by default and I do not need to enable it myself. </li>
</ul>
<p>Necessary steps to enable SSH are mentioned below.</p>
<p>PRECONDITION: You need a K9 IOS (newer than 12.1) to enable SSH. Catalyst 2900 Series switches do not support SSH.</p>
<blockquote><p>1) You MUST set a host name<br />
<strong><code>hostname ciscolab</code></strong></p>
<p>2) You MUST set a ip domain name<br />
<strong><code>ip domain-name mydomain.com</code></strong></p>
<p>3) You MUST enable aaa new-model OR set “login local” under vty configuration but not just “login”<br />
<strong><code>aaa new-model</code></strong></p>
<p>4) You MUST create a user<br />
<strong><code>username sshtest password 0 sshpass</code></strong></p>
<p>5) You MUST generate RSA keys<br />
<strong><code>crypto key generate rsa</code></strong></p>
<p>if you have RSA keys before you will receive a message, type yes<br />
<code>% You already have RSA keys defined named ciscolab.mydomain.com.<br />
% Do you really want to replace them? [yes/no]: <strong>yes</strong></code></p>
<p>it will ask for modulus size, 1024 is fine (it depends your security needs)<br />
<code>How many bits in the modulus [512]: <strong>1024</strong></code></p>
<p>6) You MUST set vty access method to all OR ssh (if you chose ssh telnet will be disabled)<br />
<strong><code>line vty 0 4<br />
&nbsp;&nbsp;transport input ssh</code></strong></p></blockquote>
<p>7) By using SecureCRT (licensed) or Putty (free), chose SSH1 (SSH in Putty) for the protocol enter hostname or IP address and click connect (Open in Putty). It will ask for username and password. Do not touch the other settings, you do not need them.</p>
<p>If you are able to access your device with SSH and still have some other questions please have a look at <a href="http://cisco-network.com/hands-on/advanced-ssh-settings-for-cisco-ios/">Advanced SSH settings for Cisco IOS </a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cisco-network.com/hands-on/ssh-cisco/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

