精品丰满熟女一区二区三区_五月天亚洲欧美综合网_亚洲青青青在线观看_国产一区二区精选

  • <menu id="29e66"></menu>

    <bdo id="29e66"><mark id="29e66"><legend id="29e66"></legend></mark></bdo>

  • <pre id="29e66"><tt id="29e66"><rt id="29e66"></rt></tt></pre>

      <label id="29e66"></label><address id="29e66"><mark id="29e66"><strike id="29e66"></strike></mark></address>
      學(xué)習(xí)啦>學(xué)習(xí)電腦>網(wǎng)絡(luò)知識(shí)>路由器>路由器設(shè)置>cisco思科>

      cisco 設(shè)置ssh

      時(shí)間: 春健736 分享

        cisco 怎么設(shè)置ssh?還在學(xué)校是可是經(jīng)常用到的命令啊,學(xué)習(xí)啦小編今天為大家?guī)?lái)思科cisco ssh設(shè)置方法,需要的朋友可以參考下!

        cisco SSH配置

        1. 配置hostname和ip domain-name

        Router#configure terminal

        Router(config)#hostname R2 //配置ssh的時(shí)候路由器的名字不能為router

        R2(config)#ip domain-name cisco.com //配置SSH必需

        R2(config)#username best password best1

        或 username best privilege 15 password 7 best1

        注:添加一個(gè)用戶:best,口令:best1

        R2(config)#line vty 0 4

        R2(config-line)#transport input ssh //只允許用SSH登錄(注意:禁止telnet和從

        交換引擎session!)

        2. 配置SSH服務(wù):

        R2(config)#crypto key generate rsa

        The name for the keys will be: R2.cisco.com

        注:SSH的關(guān)鍵字名就是hostname + . +ip domain-name

        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 minuts

        How many bits in the modulus [512]: 注:選擇加密位數(shù),cisco推薦使用1024

        Generating RSA keys ...

        [OK]

        用命令show ip ssh也能看到:

        SSH Enabled - version 1.5

        Authentication timeout: 120 secs; Authentication retries:

        現(xiàn)在SSH服務(wù)已經(jīng)啟動(dòng),如果需要停止SSH服務(wù),用以下命令:

        R2(config)#crypto key zeroize rsa

        3.設(shè)置SSH參數(shù)

        配置好了SSH之后,通過(guò)show run命令我們看到SSH默認(rèn)的參數(shù):超時(shí)限定為120秒,認(rèn)證重試次數(shù)為3次,可以通過(guò)下面命令進(jìn)行修改:

        R2(config)#ip ssh {[time-out seconds]} │ [authentication-retries interger]}

        如果要把超時(shí)限定改為180秒,則應(yīng)該用:

        R2(config)# ip ssh time-out 180

        如果要把重試次數(shù)改成5次,則應(yīng)該用:

        R2(config)# ip ssh authentication-retries

        這樣,SSH已經(jīng)在路由器上配置成功了,就能夠通過(guò)SSH進(jìn)行安全登錄了。

        注意:最后如果從別的設(shè)備用ssh登錄這臺(tái)路由器會(huì)出現(xiàn)以下內(nèi)容:

        R1#ssh -l best 192.168.0.2

        Password:

        R2>en

        % Error in authentication.

        為什會(huì)出現(xiàn)以上內(nèi)容?

        因?yàn)樵赗2上沒(méi)有配置enable password/secret xxxx

        R2配置上enable secret 5 class="main">

      cisco 設(shè)置ssh

      時(shí)間: 春健736 分享

        那么在R1上:

        R1#ssh -l best 192.168.0.2

        Password:

        R2>en

        Password:

        R2#confi g

        ^

        % Invalid input detected at '^' marker.

        在Cisco Native IOS上啟用SSH,禁止Telnet

        注意:

        命令 描述

        username admin1 privilege 15 password 0 Admin-Password 建立一個(gè)叫做admin1的系統(tǒng)管理員,每一個(gè)管理都必須重復(fù)。

        aaa new-model 使用一個(gè)本地?cái)?shù)據(jù)庫(kù),設(shè)置為AAA模式

        ip domain name MyDomain.com 建立一個(gè)用于認(rèn)證的名字

        crypto key generate rsa 建立數(shù)字證書(shū)。使用至少768位的Diffie-Hellman關(guān)鍵字

        line vty 0 4 進(jìn)入vty配置

        transport input ssh 僅僅允許SSH登錄

        cisco SSH配置

        注: 我在交換機(jī)上設(shè)置了以后,ssh可以正常登錄沒(méi)問(wèn)題,但是telnet卻仍然可以登錄,檢查后發(fā)現(xiàn)是因?yàn)榕渲梦募锒嗔艘恍?/p>

        #line vty 5 15

        我在命令行里刪除 # no line vty 5 15 報(bào)錯(cuò) Can't delete last 16 VTY lines,無(wú)法刪除vtp 5-15,在查了以后找到解決辦法,就是把line vty 5 15,設(shè)置成

        no transport input ssh

        以上文章即為cisco 設(shè)置ssh的方法了,還有什么不明白的可以移步到思科論壇求助各位大神哦。

      cisco 設(shè)置ssh

      cisco 怎么設(shè)置ssh?還在學(xué)校是可是經(jīng)常用到的命令啊,學(xué)習(xí)啦小編今天為大家?guī)?lái)思科cisco ssh設(shè)置方法,需要的朋友可以參考下! cisco SSH配置 1. 配置hostname和ip domain-name Router#configure terminal Router(config)#hostname R2 /
      推薦度:
      點(diǎn)擊下載文檔文檔為doc格式

      精選文章

      • cisco 設(shè)置enable密碼
        cisco 設(shè)置enable密碼

        cisco 怎么設(shè)置enable密碼?學(xué)習(xí)啦小編今天為大家?guī)?lái)思科交換機(jī)密碼設(shè)置方法,需要的朋友可以參考下! 一.設(shè)置console密碼 enable #configure trminal (confing)#line

      • cisco 設(shè)置dhcp服務(wù)器
        cisco 設(shè)置dhcp服務(wù)器

        配置DHCO服務(wù)器是每個(gè)網(wǎng)管必須掌握的技術(shù),那么cisco 重設(shè)置dhcp服務(wù)器?學(xué)習(xí)啦小編整理了相關(guān)資料,供您參考。 拓?fù)淙缦拢?第一步:查看設(shè)備是否支持

      • cisco胖ap ssid設(shè)置
        cisco胖ap ssid設(shè)置

        記得尚在學(xué)校的時(shí)候,老師曾經(jīng)問(wèn)過(guò)小編cisco 胖ap ssid怎么設(shè)置?小編當(dāng)時(shí)真是百愁莫展啊,?學(xué)習(xí)啦小編整理了相關(guān)資料,供您參考。 配置思路如下: 1、

      • cisco模擬器中怎么退出telnet
        cisco模擬器中怎么退出telnet

        cisco 模擬器中怎么退出telnet?學(xué)習(xí)啦小編整理了相關(guān)資料,供您參考。 退出兩種方式 1.用exit命令或者退出就可以了。 2.CTRL+Z組合鍵退出 關(guān)掉telnet具體步驟

      545090