Habilitar SSH en los conmutadores del clúster BES-53248
Si utiliza las funciones de monitorización del estado del conmutador Ethernet (CSHM) y recopilación de registros, debe generar las claves SSH y, a continuación, habilitar SSH en los conmutadores del clúster.
-
Verifique que SSH esté deshabilitado:
show ip sshMostrar ejemplo
(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
-
Si SSH no está deshabilitado, deshabilítelo de la siguiente manera:
no ip ssh server enableno ip scp server enable
-
Para EFOS 3.12 y versiones posteriores, se requiere acceso a la consola ya que las sesiones SSH activas se pierden cuando SSH está deshabilitado.
-
Para EFOS 3.11 y versiones anteriores, las sesiones SSH actuales se mantienen abiertas después de deshabilitar el servidor SSH.
+
Asegúrese de deshabilitar SSH antes de modificar las claves; de lo contrario, se mostrará una advertencia en el switch. -
-
En el modo de configuración, genere las claves SSH:
crypto key generateMostrar ejemplo
(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
-
En el modo de configuración, configure la autorización AAA para la recopilación de registros de ONTAP :
aaa authorization commands "noCmdAuthList" noneMostrar ejemplo
(switch) (Config)# aaa authorization commands "noCmdAuthList" none (switch) (Config)# exit
-
Vuelva a habilitar SSH/SCP.
Mostrar ejemplo
(switch)# ip ssh server enable (switch)# ip scp server enable (switch)# ip ssh pubkey-auth
-
Guarde estos cambios en la configuración de inicio:
write memoryMostrar ejemplo
(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!
-
Encriptar las claves SSH (solo para el modo FIPS):
En el modo FIPS, es necesario cifrar las claves con una contraseña por motivos de seguridad. En ausencia de una clave cifrada, la aplicación no se inicia. Las claves se crean y cifran utilizando los siguientes comandos: Mostrar ejemplo
(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!
-
Reinicia el switch:
reload -
Verifique que SSH esté habilitado:
show ip sshMostrar ejemplo
(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
Una vez que hayas habilitado SSH, podrás "configurar la monitorización del estado del conmutador".