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
39-13
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 39 Configuring Users and Common Roles
Configuring User Accounts
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
).
Example 39-6 Displays All Logged in Users
switch#
show users
admin pts/7 Jan 12 20:56 (10.77.202.149)
admin pts/9 Jan 12 23:29 (user.example.com)
admin pts/10 Jan 13 03:05 (dhcp-10-10-1-1.example.com)
admin pts/11 Jan 13 01:53 (dhcp-10-10-2-2.example.com)
Displaying User Account Information
Use the
show user-account
command to display configured information about user accounts. See
Examples
39-7
to
39-8
.
Example 39-7 Displays Information for a Specified User
switch#
show user-account user1
user:user1
Step 4
switch(config)#
username admin sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAtjIHrIt/3dDeohix6JcRSI
YZ0EOdJ3l5RONWcwSgAuTUSrLk
3a9hdYkzY94fhHmN8cbOxyH4Z1jcVFcQ8d
veqts/8XQhqkNAFeGy4u8TJ2Us
oreCU6DlibwkpzDafzKTpA5vB6FmHd2TI6Gnse9FUgKD5fs=
Specifies the SSH key for an existing user
account (admin).
switch(config)#
no
username admin sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAtjIHrIt/3dDeohix6JcRSI
YZ0EOdJ3l5RONWcwSgAuTUSrLk
3a9hdYkzY94fhHmN8cbOxyH4Z1jcVFcQ8d
veqts/8XQhqkNAFeGy4u8TJ2Us
oreCU6DlibwkpzDafzKTpA5vB6FmHd2TI6Gnse9FUgKD5fs=
Deletes the SSH key for the user account
(admin).
Step 5
switch(config)#
username usam ssh-cert-dn usam-dn
dsa
Specifies an SSH X.509 certificate
distinguished name and DSA algorithm to
use for authentication for an existing user
account (usam).
switch(config)#
username user1 ssh-cert-dn
user1-dn rsa
Specifies an SSH X.509 certificate
distinguished name and RSA algorithm to
use for authentication for an existing user
account (user1).
switch(config)#
no username admin ssh-cert-dn
admin-dn dsa
Removes the SSH X.509 certificate
distinguished name for the user account
(admin).
Command
Purpose