{"id":873,"date":"2011-06-22T20:24:34","date_gmt":"2011-06-22T10:24:34","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=873"},"modified":"2011-06-22T11:28:24","modified_gmt":"2011-06-22T01:28:24","slug":"cisco-generate-ssh-key-with-san-os-from-the-console","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/cisco-generate-ssh-key-with-san-os-from-the-console\/","title":{"rendered":"Cisco &#8211; Generate ssh key with SAN-OS from the console"},"content":{"rendered":"<p>We had a situation a few weeks ago where we needed to stand up some HP \/ Cisco 9124e switches in a hurry. Unfortunately our data centre people initialized the switches and weren&#8217;t available to tell us what point they&#8217;d gotten to. We could see the switches in Fabric Manager and Device Manager, but for some reason we couldn&#8217;t ssh to the devices. And for some other reason we couldn&#8217;t generate a key to use with the switches. SAN-OS version is 3.3(4a). So here&#8217;s what we did to generate keys on the console (accessed via the HP Onboard Administrator on the blade chassis).<\/p>\n<p><strong>login as: admin<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/strong><\/p>\n<p><strong>WARNING: This is a private system.\u00a0 Do not attempt to login unless you are an<\/strong><\/p>\n<p><strong>authorized user.\u00a0 Any authorized or unauthorized access and use may be moni-<\/strong><\/p>\n<p><strong>tored and can result in criminal or civil prosecution under applicable law.<\/strong><\/p>\n<p><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/strong><\/p>\n<p><strong>Firmware Version: 3.21<\/strong><\/p>\n<p><strong>Built: 11\/15\/2010 @ 09:59<\/strong><\/p>\n<p><strong>OA Bay Number:\u00a0 1<\/strong><\/p>\n<p><strong>OA Role:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Active<\/strong><\/p>\n<p><strong><a href=\"mailto:admin@256.256.256.256's\">admin@256.256.256.256&#8217;s<\/a> password:<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>HP BladeSystem Onboard Administrator<\/strong><\/p>\n<p><strong>(C) Copyright 2006-2010 Hewlett-Packard Development Company, L.P.<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Type &#8216;HELP&#8217; to display a list of valid commands.<\/strong><\/p>\n<p><strong>Type &#8216;HELP &lt;command&gt;&#8217; to display detailed information about a specific command.<\/strong><\/p>\n<p><strong>Type &#8216;HELP HELP&#8217; to display more detailed information about the help system.<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>CHASSIS-OA1&gt; connect interconnect 3<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>NOTICE: This pass-thru connection to the integrated I\/O console<\/strong><\/p>\n<p><strong>is provided for convenience and does not supply additional access<\/strong><\/p>\n<p><strong>control.\u00a0 For security reasons, use the password features of the<\/strong><\/p>\n<p><strong>integrated switch.<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Connecting to integrated switch 3 at 9600,N81&#8230;<\/strong><\/p>\n<p><strong>Escape character is &#8216;&lt;Ctrl&gt;_&#8217; (Control + Shift + Underscore)<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Press [Enter] to display the switch console:<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>User Access Verification<\/strong><\/p>\n<p><strong>switch1 login: admin<\/strong><\/p>\n<p><strong>Password:<\/strong><\/p>\n<p><strong>Cisco Storage Area Networking Operating System (SAN-OS) Software<\/strong><\/p>\n<p><strong>TAC support: <a href=\"http:\/\/www.cisco.com\/tac\">http:\/\/www.cisco.com\/tac<\/a><\/strong><\/p>\n<p><strong>Copyright (c) 2002-2009, Cisco Systems, Inc. All rights reserved.<\/strong><\/p>\n<p><strong>The copyrights to certain works contained herein are owned by<\/strong><\/p>\n<p><strong>other third parties and are used and distributed under license.<\/strong><\/p>\n<p><strong>Some parts of this software may be covered under the GNU Public<\/strong><\/p>\n<p><strong>License or the GNU Lesser General Public License. A copy of<\/strong><\/p>\n<p><strong>each such license is available at<\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.gnu.org\/licenses\/gpl.html\">http:\/\/www.gnu.org\/licenses\/gpl.html<\/a> and<\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.gnu.org\/licenses\/lgpl.html\">http:\/\/www.gnu.org\/licenses\/lgpl.html<\/a><\/strong><\/p>\n<p><strong>switch1# sh ssh key<\/strong><\/p>\n<p><strong>**************************************<\/strong><\/p>\n<p><strong>could not retrieve rsa key information<\/strong><\/p>\n<p><strong>**************************************<\/strong><\/p>\n<p><strong>could not retrieve dsa key information<\/strong><\/p>\n<p><strong>**************************************<\/strong><\/p>\n<p><strong>no ssh keys present. you will have to generate them<\/strong><\/p>\n<p><strong>**************************************<\/strong><\/p>\n<p><strong>switch1# conf t<\/strong><\/p>\n<p><strong>Enter configuration commands, one per line.\u00a0 End with CNTL\/Z.<\/strong><\/p>\n<p><strong>switch1(config)# ssh key rsa 1024<\/strong><\/p>\n<p><strong>generating rsa key(1024 bits)&#8230;..<\/strong><\/p>\n<p><strong>.<\/strong><\/p>\n<p><strong>generated rsa key<\/strong><\/p>\n<p><strong>switch1(config)# exit<\/strong><\/p>\n<p><strong>switch1# copy run start<\/strong><\/p>\n<p>And then it was all better.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We had a situation a few weeks ago where we needed to stand up some HP \/ Cisco 9124e switches in a hurry. Unfortunately our data centre people initialized the switches and weren&#8217;t available to tell us what point they&#8217;d gotten to. We could see the switches in Fabric Manager and Device Manager, but for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,5],"tags":[255,266,214,794,110,398,293,397],"class_list":["post-873","post","type-post","status-publish","format-standard","hentry","category-cisco","category-storage","tag-255","tag-9124e","tag-214","tag-cisco","tag-howto","tag-key","tag-san-os","tag-ssh"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/comments?post=873"}],"version-history":[{"count":5,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/873\/revisions"}],"predecessor-version":[{"id":877,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/873\/revisions\/877"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}