The command “enable ssh2” will start the key generation process and have the SSH ready for remote access. The key generation would take about a minute to complete.
X440G2-48p-10G4.2 # enable ssh2
WARNING: Generating new server host key
This could take up to 1 minute and cannot be cancelled. Continue? (y/N) Yes
Should the switch be running EXOS version prior to 16.2 which requires a separate module for SSH, the additional notes below has the complete procedure.