Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

啟用 HTTPS 或 SSH,並停用 PowerConnect 6200 交換器上的 HTTP 或 Telnet

Summary: 本文是使用 CLI 在 Dell 交換器上啟用 SSH 的指南。瞭解設定 Dell 交換器、SSH 和安全管理存取的 SSH 命令,包括使用 UI 啟用 SSH 的指示。

This article applies to   This article does not apply to 

Instructions

文章摘要:
在某些環境中,可能需要安全管理訪問許可權。本文提供使用 HTTPS 和 SSH 限制管理存取的必要步驟。
 
警示:此程序需要使用命令行介面 (CLI)。可透過序列或 telnet 工作階段使用此程序。但是,必須執行這些步驟,以防止無意中阻止對遠端管理的訪問。

此程序假設:
  • 交換器已設定 IP 位址,且可在網路內連線。 
  • 有一個使用權限層級 15 建立的帳戶。若要確認,請使用以下命令:
console# show users accounts

注意:完成這些步驟後,您可能會收到與憑證真實性相關的錯誤。這是因為憑證和金鑰為自我產生。這不是錯誤。
 
警示:停用 telnet 或 HTTP 存取之前,請先確認 SSH 或 HTTPS 存取。
 
注意:如果已啟用 SSH 或 HTTPS,且需要停用 telnet 和 HTTP,請前往步驟 3 以停用 telnet,以及步驟 5 以停用 HTTP。

程序:
  1. 使用命令行介面 (CLI) 連線至交換器
  2. 若要啟用 SSH,請輸入下列命令:
console>enable

console#config

console(config)#crypto key generate rsa

console(config)#crypto key generate dsa

console(config)# ip ssh server
  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 https certificate 1
console(config)# ip https server
 
注意:該系統能夠生成和存儲兩個證書。若要產生第二個金鑰,請將數字 1 替換為 2。若要啟動第二個金鑰,請使用 console(config)#ip https certificate 2
  1. 若要停用 HTTP,請輸入:
console(config)# no ip http server
  1. 使用 SSH 或 HTTPS 確認連線能力後,請輸入以下命令以儲存組態:
console# copy running-config startup-config

Additional Information

Affected Products

PowerConnect 6224, PowerConnect 6224F, PowerConnect 6224P, PowerConnect 6248, PowerConnect 6248P
Article Properties
Article Number: 000120657
Article Type: How To
Last Modified: 22 Aug 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.