Logging Out Users; Displaying User Account Information - Cisco AP776A - Nexus Converged Network Switch 5020 Configuration Manual

Cisco mds 9000 family cli configuration guide - release 4.x (ol-18084-01, february 2009)
Hide thumbs Also See for AP776A - Nexus Converged Network Switch 5020:
Table of Contents

Advertisement

Chapter 32
Configuring Users and Common Roles
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
Command
Step 4
switch(config)# username admin sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAtjIHrIt/3dDeohix6JcRSI
YZ0EOdJ3l5RONWcwSgAuTUSrLk
3a9hdYkzY94fhHmNGQGCjVg+8cbOxyH4Z1jcVFcrDogtQT+Q8d
veqts/8XQhqkNAFeGy4u8TJ2Us
oreCU6DlibwkpzDafzKTpA5vB6FmHd2TI6Gnse9FUgKD5fs=
switch(config)# no username admin sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAtjIHrIt/3dDeohix6JcRSI
YZ0EOdJ3l5RONWcwSgAuTUSrLk
3a9hdYkzY94fhHmNGQGCjVg+8cbOxyH4Z1jcVFcrDogtQT+Q8d
veqts/8XQhqkNAFeGy4u8TJ2Us
oreCU6DlibwkpzDafzKTpA5vB6FmHd2TI6Gnse9FUgKD5fs=
Step 5
switch(config)# username usam ssh-cert-dn usam-dn
dsa
switch(config)# username user1 ssh-cert-dn
user1-dn rsa
switch(config)# no username admin ssh-cert-dn
admin-dn dsa

Logging Out Users

To log out another user on the switch, use the clear user command.
In the following example, the user named vsam is logged out from the switch.
switch# clear user vsam
Use the show users command to view a list of the logged in users (see
Example 32-6 Displays All Logged in Users
switch# show users
admin
admin
admin
admin

Displaying User Account Information

Use the show user-account command to display configured information about user accounts. See
Examples
Example 32-7 Displays Information for a Specified User
switch# show user-account user1
user:user1
OL-18084-01, Cisco MDS NX-OS Release 4.x
pts/7
Jan 12 20:56 (10.77.202.149)
pts/9
Jan 12 23:29 (user.example.com)
pts/10
Jan 13 03:05 (dhcp-10-10-1-1.example.com)
pts/11
Jan 13 01:53 (dhcp-10-10-2-2.example.com)
32-7
to 32-8.
Purpose
Specifies the SSH key for an existing user
account (admin).
Deletes the SSH key for the user account
(admin).
Specifies an SSH X.509 certificate
distinguished name and DSA algorithm to
use for authentication for an existing user
account (usam).
Specifies an SSH X.509 certificate
distinguished name and RSA algorithm to
use for authentication for an existing user
account (user1).
Removes the SSH X.509 certificate
distinguished name for the user account
(admin).
Example
Cisco MDS 9000 Family CLI Configuration Guide
Configuring User Accounts
32-6).
32-13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents