ssh登錄cisco路由器

          (轉(zhuǎn)載請(qǐng)注明出處)

          R1(config)#ip domain-name prince.com  //配置本地域名,用于生成證書。證書包含了公鑰
          R1(config)#
          R1(config)#crypto key generate rsa     //配置使用RSA,生成一對(duì)密鑰 
          The name for the keys will be: R1.prince.com    //密鑰的名稱
          Choose the size of the key modulus in the range of 360 to 2048 for your
            General Purpose Keys. Choosing a key modulus greater than 512 may take
            a few minutes.
          How many bits in the modulus [512]:    //選擇密鑰的長(zhǎng)度。默認(rèn)512。 當(dāng)前路由器的允許范圍是360到2048位的長(zhǎng)度
          % Generating 512 bit RSA keys, keys will be non-exportable...[OK]
          R1(config)#
          R1(config)#aaa new-model          //配置AAA模式
          R1(config)#
          R1(config)#username prince secret 820929    //配置賬號(hào)和密碼,用于SSH客戶端登錄
          R1(config)#
          R1(config)#ip ssh time-out 30          //配置SSH的客戶端的空閑超時(shí)時(shí)間為30秒
          R1(config)#ip ssh authentication-retries 3   
          R1(config)#ip ssh time-out 120         //配置SSH的客戶端的失敗次數(shù)。如果嘗試失敗次數(shù)超過指定端。
                                                 //則默認(rèn)停止響應(yīng)120秒。下面一條命令配置停止響應(yīng)時(shí)間
          R1(config)#
          R1(config)#line vty 0 4
          R1(config-line)#transport input ssh    //配置VTY的線路,接受SSH的接入
          R1(config-line)#end

          posted on 2011-02-01 17:44 prince 閱讀(428) 評(píng)論(0)  編輯  收藏 所屬分類: 硬件網(wǎng)絡(luò)

          <2011年2月>
          303112345
          6789101112
          13141516171819
          20212223242526
          272812345
          6789101112

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(4)

          隨筆分類(72)

          相冊(cè)

          blog友人

          搜索

          最新評(píng)論

          閱讀排行榜

          主站蜘蛛池模板: 凉城县| 阳东县| 义乌市| 介休市| 罗平县| 忻城县| 连南| 宣恩县| 霍山县| 通州市| 施甸县| 电白县| 扎赉特旗| 鹤峰县| 钟祥市| 富蕴县| 故城县| 伊金霍洛旗| 宜兴市| 无锡市| 镶黄旗| 伽师县| 高尔夫| 牡丹江市| 敖汉旗| 广河县| 元氏县| 仲巴县| 新化县| 乐安县| 庄河市| 淳化县| 长兴县| 扎鲁特旗| 荔波县| 阿拉善左旗| 万源市| 历史| 大田县| 阳朔县| 宜君县|