Enable SSH on the Broadcom BES-53248 cluster switch
Enable SSH on the Broadcom BES-53248 cluster switch to support the Ethernet switch health monitor (CSHM) and log collection features. This procedure covers generating SSH keys and activating SSH access on the switch.
-
Verify that SSH is disabled:
show ip sshShow example
(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
-
If SSH is not disabled, disable it as follows:
no ip ssh server enableno ip scp server enable-
For EFOS 3.12 and later, console access is required as active SSH sessions are lost when SSH is disabled.
-
For EFOS 3.11 and earlier, current SSH sessions are kept open after disabling the SSH server.
Make sure that you disable SSH before you modify the keys, otherwise, a warning is reported on the switch. -
-
-
In config mode, generate the SSH keys:
crypto key generateShow example
(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
-
In config mode, set AAA authorization for ONTAP log collection:
aaa authorization commands "noCmdAuthList" noneShow example
(switch) (Config)# aaa authorization commands "noCmdAuthList" none (switch) (Config)# exit
-
Re-enable SSH/SCP.
Show example
(switch)# ip ssh server enable (switch)# ip scp server enable (switch)# ip ssh pubkey-auth
-
Save these changes to the startup-config:
write memoryShow example
(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!
-
Encrypt the SSH keys (for FIPS-mode only):
In FIPS mode, the keys are required to be encrypted with a passphrase for security. In the absence of an encrypted key, the application fails to start. The keys are created and encrypted using the following commands: Show example
(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!
-
Reboot the switch:
reload -
Verify that SSH is enabled:
show ip sshShow example
(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
After you've enabled SSH, you can configure switch health monitoring.