{"id":5512,"date":"2013-08-25T17:54:46","date_gmt":"2013-08-25T09:54:46","guid":{"rendered":"http:\/\/jpuyy.com\/?p=5512"},"modified":"2013-08-26T11:48:51","modified_gmt":"2013-08-26T03:48:51","slug":"connect-cisco-using-ssh","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=5512","title":{"rendered":"\u601d\u79d1\u8def\u7531\u5668\u4ea4\u6362\u673a\u4f7f\u7528ssh\u65b9\u5f0f\u8fde\u63a5"},"content":{"rendered":"<p>\u8fdb\u5165\u914d\u7f6e\u6a21\u5f0f<\/p>\n<pre>configure terminal<\/pre>\n<p>\u4e00\u3001\u8bbe\u7f6eenable\u5bc6\u7801<\/p>\n<pre>enable secret password<\/pre>\n<p>\u6216<\/p>\n<pre>enable secret 5 $1$7W0A$UTAhixRjHMbE0kHPWZNMJ0<\/pre>\n<p>\u4e8c\u3001\u7ed9\u4ea4\u6362\u673a\u547d\u540d<\/p>\n<pre>hostname switch<\/pre>\n<p>\u4e09\u3001\u914d\u7f6e\u57df\u540d<\/p>\n<pre>ip domain-name test.com<\/pre>\n<p>\u56db\u3001\u542f\u7528AAA\uff0c\u5e76\u4ea7\u751frsa\u5bc6\u94a5\u5bf9<\/p>\n<pre>aaa new-model\r\ncrypto key generate rsa<\/pre>\n<p>R1(config)#crypto key generate rsa<br \/>\nThe name for the keys will be: R1.router.jpuyy.com<br \/>\nChoose the size of the key modulus in the range of 360 to 2048 for your<br \/>\nGeneral Purpose Keys. Choosing a key modulus greater than 512 may take<br \/>\na few minutes.<\/p>\n<p>How many bits in the modulus [512]: 1024<br \/>\n% Generating 1024 bit RSA keys, keys will be non-exportable&#8230;[OK]<\/p>\n<p>\u6ce8\uff1arsa\u9ed8\u8ba4\u4e3a512bits\uff0c\u5efa\u8bae\u91c7\u7528768bits\u4ee5\u4e0a\u7684\u957f\u5ea6\uff0c\u8fd9\u6837\u53ef\u5f00\u542f\u5bf9sshv2\u7684\u652f\u6301<\/p>\n<p>\u4e94\u3001\u914d\u7f6e\u7528\u6237\u540d\u548c\u53e3\u4ee4<\/p>\n<pre>username cisco password cisco<\/pre>\n<p>\u516d\u3001\u914d\u7f6e\u767b\u5f55\u65b9\u5f0f\u4e3aSSH\u3002\u6ce8\u610f\u8981\u5c060-15\u5168\u90e8\u914d\u7f6e\u4e3aSSH\u65b9\u5f0f\uff0c\u4e0d\u7136telnet\u4ecd\u53ef\u8bbf\u95ee\u3002<\/p>\n<pre>line vty 0 4\r\n transport input ssh<\/pre>\n<pre>line vty 5 15\r\ntransport input ssh<\/pre>\n<p>\u6700\u540e\u53ef\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u663e\u793aSSH\u914d\u7f6e\u4fe1\u606f<\/p>\n<pre>R1#show ip ssh<\/pre>\n<p>SSH Enabled &#8211; version 1.99<br \/>\nAuthentication timeout: 120 secs; Authentication retries: 3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fdb\u5165\u914d\u7f6e\u6a21\u5f0f configure terminal \u4e00\u3001\u8bbe\u7f6eenable\u5bc6\u7801 enable secret password \u6216 enable secret 5 $1$7W0A$UTAhixRjHMbE0kHPWZNMJ0 \u4e8c\u3001\u7ed9\u4ea4\u6362\u673a\u547d\u540d hostname switch \u4e09\u3001\u914d\u7f6e\u57df\u540d ip domain-name test.com \u56db\u3001\u542f\u7528AAA\uff0c\u5e76\u4ea7\u751frsa\u5bc6\u94a5\u5bf9 aaa new-model crypto key generate rsa R1(config)#crypto key generate rsa The name for the keys will be: R1.router.jpuyy.com Choose the size of the key modulus in the range of 360 to 2048 for your General [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[],"class_list":["post-5512","post","type-post","status-publish","format-standard","hentry","category-network"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/5512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5512"}],"version-history":[{"count":6,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/5512\/revisions"}],"predecessor-version":[{"id":5525,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/5512\/revisions\/5525"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}