Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell Networking 在舊版 PowerConnect 7000 和 N 系列交換器上啟用 HTTPS 和 SSH,並停用 HTTP 和 Telnet 交換器

Summary: 如何限制 PowerConnect 7000 上 HTTPS 和 SSH 的管理存取。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

本文提供在 PowerConnect 7000 上限制 HTTPS 和 SSH 管理存取權限的必要步驟。

此程序假設:
  • 交換器已設定 IP 位址,且可在網路內連線。
  • 有一個使用權限層級 15 建立的帳戶。若要確認,請使用以下命令:
show users accounts
如需較新的 N 系列交換器和其他管理選項,請參閱如何設定 Dell Networking N2000、N3000 和 N4000 系列交換器的管理存取權
  1. 透過主控台、telnet 或 ssh 連線至交換器。
  2. 7000 系列需要具備 Privileged Exec (啟用) 模式的密碼,才能透過 SSH 或 Telnet 進行遠端管理。若未設定此密碼,可能會導致 CLI 管理能力嚴重受限。新增啟用密碼:
console> enable
console# config
console(config)# enable password MYPASSWORD
  1. 若要啟用 SSH,請輸入下列命令:
console(config)# crypto key generate rsa
console(config)# crypto key generate dsa
console(config)# ip ssh server

如果特定命令出現問題,請確保您執行的是最新韌體版本。 

警示:停用 telnet 或 HTTP 存取之前,請先確認 SSH 或 HTTPS 存取。
  1. 若要停用 telnet,請執行: 
console(config)# ip telnet server disable
  1. 若要啟用 HTTPS,請輸入下列命令:
console(config)# crypto certificate 1 generate
console(config-crypto-cert)# key-generate <512-2048>
console(config-crypto-cert)# exit
console(config)# ip http secure-certificate <1 - 2> Instance of the certificate to be activated.
console(config)# ip http secure-server

此系統可以生成和存儲兩個證書。若要產生第二個金鑰,請將數字 1 替換為 2。若要啟動第二個金鑰,請使用:

(config)# ip http secure-certificate 2
  1. 若要停用 HTTP,請輸入:
console(config)# no ip http server
  1. 使用 SSH 或 HTTPS 確認連線能力後,請輸入以下命令以儲存組態:
console# copy running-config startup-config
 
注意:完成這些步驟後,您會收到與憑證真實性相關的錯誤。這是因為憑證和金鑰為自我產生。這不是錯誤。

Article Properties


Affected Product

Networking, N Series, PowerSwitch N2000 Series, PowerSwitch N3000 Series, PowerSwitch N4000 Series, PowerConnect 7024, PowerConnect 7024F, PowerConnect 7024P, PowerConnect 7048, PowerConnect 7048P, PowerConnect 7048R

Product

PowerConnect 7048P, PowerConnect 7048R

Last Published Date

28 Mar 2024

Version

5

Article Type

How To