If you do not specify a password for the user account, the user might not be able to log in to the account.
Caution
To use this command, you must enable the cumulative privilege of roles using the
feature privilege
command.
A passphrase is required when you export or import the key-pair. The passphrase encrypts the exported private
key for the user and decrypts it during import.
This command does not require a license.
Examples
This example shows how to create a user account with a password and a user role:
switch#
configure t
switch(config)#
username user1 password Ci5co321 role vdc-admin
This example shows how to configure the SSH key for a user account:
switch#
configure t
switch(config)#
username user1 sshkey file bootflash:key_file
This example shows how to generate the SSH public and private keys and store them in the home directory
of the Cisco NX-OS device for the user:
switch#
configure t
switch(config)#
username user1 keypair generate rsa
generating rsa key(2048 bits)......
generated rsa key
This example shows how to export the public and private keys from the home directory of the Cisco NX-OS
device to the bootflash directory:
switch#
configure t
switch(config)#
username user1 keypair export bootflash:key_rsa rsa
Enter Passphrase:
switch(config)# dir
.
.
.
951 Jul 09 11:13:59 2009 key_rsa
221 Jul 09 11:14:00 2009 key_rsa.pub
.
.
The private key is exported as the file that you specify, and the public key is exported with the same filename
followed by a .pub extension.
This example shows how to import the exported public and private keys from the bootflash directory to the
home directory of the Cisco NX-OS device:
switch#
configure t
switch(config)#
username user1 keypair import bootflash:key_rsa rsa
Enter Passphrase:
switch(config)#
show username user1 keypair
**************************************
rsa Keys generated: Thu Jul 9 11:10:29 2009
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEoQhIcvnrMbx2BmD0P8boZElTfJ
Fx9fexWp6rOiztlwODtehnDE2DvYNvqsrU9TBypY6cKubyFW
VxSBG/QC1zdkIxGNJbEHyFoajzNEO8LLOVFIMCZ2Td7fbq
S33GZsCAX6v0=
bitcount:262144
fingerprint:
8d:44:ee:6c:ca:0b:44:95:36:d0:7d:f2:b5:78:74:7d
**************************************
could not retrieve dsa key information
Cisco Nexus 7000 Series Security Command Reference
973
U Commands
username
Содержание Nexus 7000 Series
Страница 2: ... Cisco Systems Inc All rights reserved ...
Страница 20: ...Cisco Nexus 7000 Series Security Command Reference xx Contents ...
Страница 62: ...Cisco Nexus 7000 Series Security Command Reference 36 A Commands aaa authentication rejected ...
Страница 78: ...Cisco Nexus 7000 Series Security Command Reference 52 A Commands aaa user default role ...
Страница 157: ...Cisco Nexus 7000 Series Security Command Reference 131 C Commands crypto ca import ...
Страница 172: ...Cisco Nexus 7000 Series Security Command Reference 146 C Commands cts role based sgt map ...
Страница 186: ...Cisco Nexus 7000 Series Security Command Reference 160 C Commands cts role based access list ...
Страница 190: ...Cisco Nexus 7000 Series Security Command Reference 164 C Commands cts role based detailed logging ...
Страница 256: ...dscp dscp Cisco Nexus 7000 Series Security Command Reference 230 D Commands deny IPv4 ...
Страница 271: ...protocol Cisco Nexus 7000 Series Security Command Reference 245 D Commands deny IPv6 ...
Страница 274: ...dscp dscp Cisco Nexus 7000 Series Security Command Reference 248 D Commands deny IPv6 ...
Страница 291: ...Cisco Nexus 7000 Series Security Command Reference 265 D Commands description identity policy ...
Страница 293: ...Cisco Nexus 7000 Series Security Command Reference 267 D Commands description user role ...
Страница 299: ...Cisco Nexus 7000 Series Security Command Reference 273 D Commands device role ...
Страница 313: ...Cisco Nexus 7000 Series Security Command Reference 287 E Commands enable Cert DN match ...
Страница 340: ...Cisco Nexus 7000 Series Security Command Reference 314 E Commands eq ...
Страница 344: ...Cisco Nexus 7000 Series Security Command Reference 318 F Commands feature cts ...
Страница 350: ...Cisco Nexus 7000 Series Security Command Reference 324 F Commands feature ldap ...
Страница 369: ...G Commands gt page 344 Cisco Nexus 7000 Series Security Command Reference 343 ...
Страница 372: ...Cisco Nexus 7000 Series Security Command Reference 346 G Commands gt ...
Страница 398: ...Cisco Nexus 7000 Series Security Command Reference 372 I Commands interface policy deny ...
Страница 454: ...Cisco Nexus 7000 Series Security Command Reference 428 I Commands ip udp relay subnet broadcast ...
Страница 470: ...Cisco Nexus 7000 Series Security Command Reference 444 I Commands ipv6 dhcp ldra attach policy interface ...
Страница 497: ...Cisco Nexus 7000 Series Security Command Reference 471 K Commands key config key ...
Страница 504: ...Cisco Nexus 7000 Series Security Command Reference 478 K Commands key string ...
Страница 518: ...Cisco Nexus 7000 Series Security Command Reference 492 L Commands It ...
Страница 536: ...Cisco Nexus 7000 Series Security Command Reference 510 M Commands monitor session ...
Страница 537: ...N Commands nac enable page 512 neq page 513 Cisco Nexus 7000 Series Security Command Reference 511 ...
Страница 543: ...Cisco Nexus 7000 Series Security Command Reference 517 O Commands object group identity policy ...
Страница 552: ...Cisco Nexus 7000 Series Security Command Reference 526 O Commands other config flag ...
Страница 569: ...dscp dscp Cisco Nexus 7000 Series Security Command Reference 543 P Commands permit IPv4 ...
Страница 584: ...protocol Cisco Nexus 7000 Series Security Command Reference 558 P Commands permit IPv6 ...
Страница 587: ...dscp dscp Cisco Nexus 7000 Series Security Command Reference 561 P Commands permit IPv6 ...
Страница 622: ...Cisco Nexus 7000 Series Security Command Reference 596 P Commands propagate sgt ...
Страница 664: ...Cisco Nexus 7000 Series Security Command Reference 638 R Commands rule ...
Страница 714: ...Cisco Nexus 7000 Series Security Command Reference 688 S Commands switchport port security violation ...
Страница 737: ...Cisco Nexus 7000 Series Security Command Reference 711 Show Commands show arp access lists ...
Страница 841: ...Cisco Nexus 7000 Series Security Command Reference 815 Show Commands show ipv6 dhcp ldra ...
Страница 992: ...Cisco Nexus 7000 Series Security Command Reference 966 T Commands trustedCert ...
Страница 1015: ...Cisco Nexus 7000 Series Security Command Reference 989 V Commands vlan policy deny ...
Страница 1017: ...Cisco Nexus 7000 Series Security Command Reference 991 V Commands vrf policy deny ...
Страница 1018: ...Cisco Nexus 7000 Series Security Command Reference 992 V Commands vrf policy deny ...