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ù)超過(guò)指定端。
                                                 //則默認(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 閱讀(433) 評(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)論

          閱讀排行榜

          主站蜘蛛池模板: 黑龙江省| 古丈县| 荔波县| 淄博市| 尤溪县| 林甸县| 高雄县| 元朗区| 林州市| 曲松县| 盘山县| 崇仁县| 滕州市| 云安县| 涪陵区| 山西省| 兴和县| 河东区| 武强县| 台南市| 平罗县| 昭觉县| 保靖县| 稷山县| 定西市| 湄潭县| 安阳县| 新平| 子长县| 上高县| 南宫市| 从化市| 海晏县| 长丰县| 怀柔区| 讷河市| 珠海市| 丹棱县| 雷山县| 乐亭县| 墨江|