p4 pubkeys (graph)

Display a list of the SSH public keys.

Note

For depots of type graph only.

Syntax

p4 [-ztag] pubkeys [-u user] [-s scope]
p4 [g-opts] pubkeys [-u user] [-s scope]

Syntax conventions

Description

Note

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.

Note

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

-u username

Limit the output to the specified user.

-s scopename

Limit the output to the specified scope.

To learn about the scope associated with a key, see p4 pubkey.

-ztag

Shows additional data, such as the scope of that SSH key. A user might have multiple keys, each of which has a different scope.

g-opts

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

list

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

bruno

desktop

9DF…​C5

2017/03/22 10:03:01

ssh-rsa AN…​C1== bruno@p4.com

bruno

laptop

B3…​BF

2017/04/08 14:08:29

ssh-rsa Aj…​6Q== bruno@p4.com

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

p4 pubkey