Import DSA and RSA Private or Public Keys
About this task
Use this task to import SSH RSA and DSA public and private keys.
Procedure
Examples
Switch:1(config)#ssh install-user-key admin public dsa Switch(config)#1 2021-07-22T14:09:43.278+03:00 5520-24X-VOSS CP1 - 0x0041460b - 00000000 GlobalRouter CLOUD_AGENT INFO Successfully installed SSH public key to path </intflash/.ssh/dsa_key_admin>.
Switch:1(config)#ssh install-user-key admin private dsa Info: Successfully installed the private key to path /intflash/.ssh/id_dsa_admin Switch:1(config)#1 2021-07-22T14:08:00.354+03:00 5520-24X-VOSS CP1 - 0x0041460b - 00000000 GlobalRouter CLOUD_AGENT INFO Successfully installed SSH private key to path </intflash/.ssh/id_dsa_admin>.
Variable Definitions
the following table defines parameters for the ssh install-user-key command.
Variable | Value |
---|---|
WORD<1-15>{ rwa | rw | ro | rwl1 | rwl2 | rwl3, enhanced-secured mode : admin | operator | auditor | security | priv } |
Specifies the user access level. You must enable SSH globally before you can generate SSH DSA user keys. If enhanced secure mode is disabled, the valid user access levels for the switch are:
If you enable enhanced secure mode, the switch uses role-based authentication. You associate each username with a specific role and the appropriate authorization rights to commands based on that role. If enhanced secure mode is enabled, the valid user access levels for the switch are:
|
WORD<1-15>{public | private} |
Specifies the public key or the private key type to copy from /intflash/shared to /intflash/.ssh. |
WORD<1-15>{dsa | rsa} |
Specifies the DSA or RSA signature algorithm for the public key or the private key to copy. |