Logging Out Users; Displaying User Account Information - HP Cisco MDS 9020 - Fabric Switch Configuration Manual

Cisco mds 9000 family cli configuration guide, release 3.x (ol-16184-01, april 2008)
Hide thumbs Also See for Cisco MDS 9020 - Fabric Switch:
Table of Contents

Advertisement

Chapter 39
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 39-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 39-7 Displays Information for a Specified User
switch# show user-account user1
user:user1
OL-16184-01, Cisco MDS SAN-OS Release 3.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)
39-7
to 39-8.
Configuring User Accounts
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
39-6).
39-13

Advertisement

Table of Contents
loading

Table of Contents