Aktivieren Sie SSH auf BES-53248 Cluster-Switches.
Wenn Sie die Funktionen Ethernet Switch Health Monitor (CSHM) und Protokollerfassung verwenden, müssen Sie die SSH-Schlüssel generieren und anschließend SSH auf den Cluster-Switches aktivieren.
-
Überprüfen Sie, ob SSH deaktiviert ist:
show ip sshBeispiel anzeigen
(switch)# show ip ssh SSH Configuration Administrative Mode: .......................... Disabled SSH Port: ..................................... 22 Protocol Level: ............................... Version 2 SSH Sessions Currently Active: ................ 0 Max SSH Sessions Allowed: ..................... 5 SSH Timeout (mins): ........................... 5 Keys Present: ................................. DSA(1024) RSA(1024) ECDSA(521) Key Generation In Progress: ................... None SSH Public Key Authentication Mode: ........... Disabled SCP server Administrative Mode: ............... Disabled
-
Falls SSH nicht deaktiviert ist, deaktivieren Sie es wie folgt:
no ip ssh server enableno ip scp server enable
-
Für EFOS 3.12 und höher ist Konsolenzugriff erforderlich, da aktive SSH-Sitzungen verloren gehen, wenn SSH deaktiviert ist.
-
Bei EFOS 3.11 und früher bleiben aktuelle SSH-Sitzungen nach der Deaktivierung des SSH-Servers offen.
+
Stellen Sie sicher, dass Sie SSH deaktivieren, bevor Sie die Schlüssel ändern, andernfalls wird eine Warnung auf dem Switch angezeigt. -
-
Generieren Sie im Konfigurationsmodus die SSH-Schlüssel:
crypto key generateBeispiel anzeigen
(switch)# config (switch) (Config)# crypto key generate rsa Do you want to overwrite the existing RSA keys? (y/n): y (switch) (Config)# crypto key generate dsa Do you want to overwrite the existing DSA keys? (y/n): y (switch) (Config)# crypto key generate ecdsa 521 Do you want to overwrite the existing ECDSA keys? (y/n): y
-
Legen Sie im Konfigurationsmodus die AAA-Autorisierung für die ONTAP Protokollerfassung fest:
aaa authorization commands "noCmdAuthList" noneBeispiel anzeigen
(switch) (Config)# aaa authorization commands "noCmdAuthList" none (switch) (Config)# exit
-
Aktivieren Sie SSH/SCP erneut.
Beispiel anzeigen
(switch)# ip ssh server enable (switch)# ip scp server enable (switch)# ip ssh pubkey-auth
-
Speichern Sie diese Änderungen in der Startkonfiguration:
write memoryBeispiel anzeigen
(switch)# write memory This operation may take a few minutes. Management interfaces will not be available during this time. Are you sure you want to save? (y/n) y Config file 'startup-config' created successfully. Configuration Saved!
-
Verschlüsseln Sie die SSH-Schlüssel (nur für den FIPS-Modus):
Im FIPS-Modus müssen die Schlüssel aus Sicherheitsgründen mit einer Passphrase verschlüsselt werden. Fehlt ein verschlüsselter Schlüssel, kann die Anwendung nicht gestartet werden. Die Schlüssel werden mithilfe der folgenden Befehle erstellt und verschlüsselt: Beispiel anzeigen
(switch) configure (switch) (Config)# crypto key encrypt write rsa passphrase <passphase> The key will be encrypted and saved on NVRAM. This will result in saving all existing configuration also. Do you want to continue? (y/n): y Config file 'startup-config' created successfully. (switch) (Config)# crypto key encrypt write dsa passphrase <passphase> The key will be encrypted and saved on NVRAM. This will result in saving all existing configuration also. Do you want to continue? (y/n): y Config file 'startup-config' created successfully. (switch)(Config)# crypto key encrypt write ecdsa passphrase <passphase> The key will be encrypted and saved on NVRAM. This will result in saving all existing configuration also. Do you want to continue? (y/n): y Config file 'startup-config' created successfully. (switch) (Config)# end (switch)# write memory This operation may take a few minutes. Management interfaces will not be available during this time. Are you sure you want to save? (y/n) y Config file 'startup-config' created successfully. Configuration Saved!
-
Starten Sie den Switch neu:
reload -
Überprüfen Sie, ob SSH aktiviert ist:
show ip sshBeispiel anzeigen
(switch)# show ip ssh SSH Configuration Administrative Mode: .......................... Enabled SSH Port: ..................................... 22 Protocol Level: ............................... Version 2 SSH Sessions Currently Active: ................ 0 Max SSH Sessions Allowed: ..................... 5 SSH Timeout (mins): ........................... 5 Keys Present: ................................. DSA(1024) RSA(1024) ECDSA(521) Key Generation In Progress: ................... None SSH Public Key Authentication Mode: ........... Enabled SCP server Administrative Mode: ............... Enabled
Nachdem Sie SSH aktiviert haben, können Sie "Konfigurieren der Switch-Integritätsüberwachung"Die