p4 pubkeys (graph)
Display a list of the SSH public keys.
For depots of type graph
only.
Syntax
p4 [-ztag] pubkeys [-u user] [-s scope]
p4 [g-opts] pubkeys [-u user] [-s scope]
Description
An administrator is the owner, or a user that has been granted the
admin
permission for that specific graph depot or
repo.
To get a listing of the public SSH keys that have been posted on the
server, the administrator issues the p4 pubkeys
command. In
addition to the administrator, any user with list
access can
run this command. See p4
protect
.
To learn about the scope
of a key, see the section
Scope
in the topic p4
pubkey
.
To get additional information, such as the scope
of the
SSH key. Use the scope
to differentiate the keys for a
user who has more than one SSH key.
Options
|
Limit the output to the specified user. |
|
Limit the output to the specified scope. To learn about the |
|
Shows additional data, such as the |
|
See Global options. |
Usage notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
N/A |
N/A |
|
The command returns no output if there is no object to report on.
Examples
To get additional information, such as the scope
of the SSH
key. Use the scope
to differentiate the keys for a user who
has more than one SSH key.
p4 -ztag pubkeys -u bruno
This output shows that the user has one key for a laptop computer and another key for a desktop computer:
user | scope | digest | lastUpdate | key |
---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
Note: The digest
is explained at p4 fstat
under Form
Fields.
To limit the list to a specific scope, use the -s
option:
p4 pubkeys -s mac-laptop
Related commands
To create an SSH public key |