An authentication key must be generated before the switch can accept incoming SSH2 sessions. This can be done automatically by the switch, or you can enter a previously generated key.
The key generation process can take up to ten minutes. After the key has been generated, you should save your configuration to preserve the key.
Note
The pregenerated key must be one that was generated by the switch. To get such a key, you can use the command show ssh2 private-key to display the key on the console. Copy the key to a text editor and remove the carriage return/line feeds. Finally, copy and paste the key into the command line. The key must be entered as one line.