HP 3PAR InForm OS 3.1.1 Command Line Interface Reference

setsshkey
DESCRIPTION
The setsshkey command sets the SSH public key for a user.
The user will be prompted to provide the SSH public key. To finish entering the public key, press
enter on a blank line. The key must have been generated using the ssh-keygen utility. The public
key is contained in the user-defined file named with .pub extension. The user can open this file
with an ASCII editor to copy the key and paste it. After setting the SSH public key on the HP 3PAR
Storage System, the user can use the corresponding private key to log on without a password. This
new key replaces the existing key if any.
NOTE: See the HP 3PAR InForm OS Common Criteria Administrator’s Reference for more
information before using this command in Common Criteria mode.
SYNTAX
setsshkey [options]
AUTHORITY
Super, Edit, Browse, Service
Any role granted the sshkey_set right.
OPTIONS
add
Specifies that the given key should be added to the list of authorized keys instead of replacing
existing ones.
SPECIFIERS
None.
RESTRICTIONS
None.
EXAMPLES
The following example displays the setting of a user’s SSH public key:
cli% setsshkey
Please enter the SSH public key below. When finished, press enter twice. The
key is usually long. It's better to copy it from inside an editor and paste it
here. (Please make sure there are no extra blanks.)
The maximum length of the key is 4096 bits.
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAp+4Z3zT8Sq6t3s08q/MMd2ZnMpRc/3tyHMk63dH
R8b/VgV6ewXNfYhhfTGWRdZ1dtyLFXnuEPuf+z8EtinFStinTzA3FiJ0agK7rLoNtn/F0jBaGWm
SWukqzAQA2VJvq/keaLVMT3+J3nvXEUcjS4fApeeLwFgKczOX511oaHDtn2ys2C5l+mLw1VDUJL
wIKJljOWqr68ToeRgTDmoppOI3cG14ryF0re4xKANHFQLnSCt5ANjqD2jpnyEABuOvBX7G6vI5g
zQFfcAda/a2bq563/AHr8Ehhi5EVy+GSCqjj8cr0/zHSZyX6llQUfe0YxmayPEKlods6bDi5oxG
COw== user1@server1
328 Set Commands