欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Cisco設(shè)備配置SSH登錄

一 試驗(yàn)拓?fù)?br/>

網(wǎng)站建設(shè)哪家好,找創(chuàng)新互聯(lián)建站!專注于網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、成都小程序開發(fā)、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了龍山免費(fèi)建站歡迎大家使用!

Cisco設(shè)備配置SSH登錄

二 Server配置

①配置hostname和domain name

因?yàn)閞sa的秘鑰是用hostname和domain name產(chǎn)生的

Router(config)#host Server

Server(config)#ip domain name test.com

②生成RSA秘鑰

當(dāng)生成rsa秘鑰后ssh服務(wù)會(huì)自動(dòng)開啟,反之會(huì)自動(dòng)關(guān)閉

要?jiǎng)h除 RSA密鑰對,請使用 crypto key zeroize rsa全局配置模式命令。刪除 RSA密鑰對之后,SSH服務(wù)器將自動(dòng)禁用

Server(config)#crypto key generate rsa 

The name for the keys will be: Server.test.com

Choose the size of the key modulus in the range of 360 to 4096 for your

  General Purpose Keys. Choosing a key modulus greater than 512 may take

  a few minutes.

How many bits in the modulus [512]: 2048   //設(shè)置秘鑰長度

% Generating 2048 bit RSA keys, keys will be non-exportable...

[OK] (elapsed time was 7 seconds)

Server(config)#

*May  2 09:50:12.583: %SSH-5-ENABLED: SSH 1.99 has been enabled   //ssh自動(dòng)開啟


③配置用戶名和密碼

Server(config)#username admin privilege 0 secret cisco  //這里如果privilege不是0 在ssh時(shí)就會(huì)自動(dòng)進(jìn)入特權(quán)模式(即不需要enable命令也不需要enable密碼)


④配置enable密碼

Server(config)#enable secret cisco


⑤配置vty

Server(config)#line vty 0  4

Server(config-line)#exec-timeout 10 0

Server(config-line)#logging synchronous

Server(config-line)#login local

Server(config-line)#transport input ssh


⑥ssh的其他設(shè)置

Server(config)#ip ssh time-out 120   //ssh超時(shí)時(shí)間

Server(config)#ip ssh authentication-retries 2   //ssh認(rèn)證失敗的次數(shù)

Server(config)#ip ssh version 2  //ssh的版本

Server(config)#ip ssh source-interface fastEthernet 0/0  //指定接口如果有vlan也可以,當(dāng)指定接口后設(shè)備上的其他接口就不能被ssh


三 測試登錄

注意:在cisco設(shè)備上面使用ssh命令需要指定用戶(如果本地未配置username)

Client#ssh -l admin 12.1.1.2 Passwor

Password:

Server>en

Password: 

Server#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Server(config)#end

本文題目:Cisco設(shè)備配置SSH登錄
轉(zhuǎn)載注明:http://www.chinadenli.net/article8/gpciop.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站自適應(yīng)網(wǎng)站定制開發(fā)外貿(mào)建站動(dòng)態(tài)網(wǎng)站靜態(tài)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

搜索引擎優(yōu)化