SET USER SSHKEY
Enter this command to set an SSH key for a specified user. This allows key-based authentication in addition to password authentication.
IMPORTANT: All keys must be on a single line (no line returns) and must be enclosed in quotes. The maximum size of a key entered is 2048 bits (256 characters). | |
Command syntax
set user sshkey
[<user name>
] {"<ssh_public_key>
"}
NOTE: Users can set only their own public keys, and when doing so can omit the <user name> portion of the command. Administrators can set public keys for anyone, and when doing so they must include the <user name> portion of the command. | |
Access privilege
Administrators can set SSH public keys for any user.
Users can only set their own SSH public key.
Restrictions
The following SSH key formats are supported:
RFC 4716
---- BEGIN SSH2 PUBLIC KEY ---- Comment: "testuser" AAAAB3NzaC1kc3MAAACAT27C04Dy2zr7fWhUL7TwHDKQdEdyuAlNLIivLFP3IoKZZtzF0VInP 5x2VFVYmTvdVjD92CTlxxAtarOPON2qUqoOajKRtBWLmxcfqsLCT3wI3ldxQvPYnhTYyhPQuo eJ/vYhoam+y0zi8D03pDv9KaeNA3H/zEL5mf9Ktgts8/UAAAAVAJ4efo8ffq0hg4a/eTGEuHP Cb3INAAAAgCbnhADYXu+Mv4xuXccXWP0Pcj47 ---- END SSH2 PUBLIC KEY ----
OpenSSH key format, for example:
ssh-dss AAAAB3NzaC1kc3MAAACAYjEd8Rk8HLCLqDIlI+RkA1UXjVS28hNSk8 YDljTaJpw1VOlBirrLGPdSt0avNSz0DNQuU7gTPfjj/8cXyHe3y95Oa3Rics1fARyLiNFGqFj r7w2ByQuoYUaXBzzghIYMQcmpc/W/kDMC0dVOf2XnfcLpcVDIm3ahVPRkxFV9WKkAAAAVAI3J 61F+oVKrbNovhoHh8pFfUa9LAAAAgA8pU5/M9F0s5QxqkEWPD6+FVz9c testuser
Output
Command output example
hpiLO-> set user sshkey administrator "ssh-rsa AAAAB3NzaC1yc2EAAA ABJQAAAIBAWknsS5G4nLKlLeW51c26FhlxyuaJspceXvcSWlqXk8DeJ/1faeHGbL3W Y9DiJmM3S4bv2BQ+cYqQZC4BvfmYEpVFWepO4QG0dO0IUql+R7WhMX4BzpHop2U6Vv VyRrx+eAxh+Lf00OpfdlofB645mwZoD3NYC/H9Q409UcGgHQ== rsa-key-20150219
User: USER SSH set.
hpiLO->