3PAR InForm® OS 2.3.1 CLI Reference (320-200166 Rev B, March 2010)

21.71
InForm OS Version 2.3.1 Command Line Interface Reference
EXAMPLES
The following example displays the setting of a users SSH public key:
NOTES
Issuing the setsshkey command results in the system prompting for your SSH public key.
Copy and paste the key using the aforementioned ASCII editor on the command line and
then press
ENTER.
After setting the SSH public key on the system, use the corresponding private key to log on
without a password. A single ssh key may be used for multiple hosts with a single use of
setsshkey, or different keys may be used for different hosts. To restrict the usage of a key
to a particular host, a
-from option can be added to the beginning of a key. For example:
from="192.168.1.1" ssh-rsa AAAAB3Nza...
The maximum number of characters used to represent the SSH key (including the -from
option, key type, and additional comments) is 4095.
LDAP users are only allowed to set an SSH key if the setauthparam command has been
used to set the
allow-ssh-key parameter to 1. When an LDAP user runs the setsshkey
command, the user's privilege level is recorded and is assigned when the user logs in using
the key. Changes in the group-to-privilege mappings set with the
setauthparam
command or changes in the user's data in the LDAP server have no effect as long as the user
has an SSH key.
Removing the user’s SSH key forces a new privilege to be determined at the user’s next
login.
Only one key may be entered at a time; to enter multiple keys, run the setsshkey
command again with the
-add option.
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”