SSH Reference Manual
Client Mode Commands Operating on the KEY 
Entity 
ALTER KEY 
The ALTER KEY command changes one or more attributes of an existing user private key and has the following syntax: 
ALTER KEY [<system-user-name>:]<key-name> 
 [, COMMENT "<comment>"] 
 [, LIVE-DATE <date-time>] 
 [, EXPIRE-DATE <date-time>] 
The individual attributes have the following meaning and syntax: 
<system-user-name> 
This refers to a valid GUARDIAN user who owns the key in the SSH key store. If <system-user-name> is omitted, either 
the user being set in a previously issued ASSUME USER command or the issuer of the ALTER KEY command will be 
used as the default. If <system-user-name> is specified, it MUST be followed by a ':' to separate it from the key name. 
<key-name> 
This refers to the name of the key owned by the current user. The key name cannot be altered. 
<date time> 
Date or date and time in either of the following formats: 
•  DD Mon YYYY hh:mm 
•  "DDMonYY,hh:mm" 
•  DD Mon YYYY 
•  DDMonYY 
The second format requires surrounding quotes because it contains a comma (commas are separators in SSHCOM). 
COMMENT 
This optional attribute is used to associate additional textual information with the key. 
LIVE-DATE 
This optional attribute is used to set the LIVE-DATE (not-valid-before date) for the key. This attribute can only be set if 
the life-cycle policy for User Private Keys is enabled (determined by SSH2 parameter 
LIFECYCLEPOLICYPRIVATEUSERKEY). If SSH2 parameter LIFECYCLEPOLICYPRIVATEUSERKEY is set to 
FIXED, then field LIVE-DATE can be modified by the SUPER.SUPER user only (unless explicitly denied in 
OBJECTTYPE USER record) or those configured with full SSHCOM access. In case the SSH2 parameter 
LIFECYCLEPOLICYPRIVATEUSERKEY is set to VARIABLE, then every user can change field LIVE-DATE for 
those keys the user owns. 
EXPIRE-DATE 
This optional attribute is used to set the EXPIRE-DATE (not-valid-after date) for the key. This attribute can only be set 
if the life-cycle policy for User Private Keys is enabled (determined by SSH2 parameter 
LIFECYCLEPOLICYPRIVATEUSERKEY). If SSH2 parameter LIFECYCLEPOLICYPRIVATEUSERKEY is set to 
FIXED, then field EXPIRE-DATE can be modified by the SUPER.SUPER user only (unless explicitly denied in 
OBJECTTYPE USER record) or those configured with full SSHCOM access. In case the SSH2 parameter 
LIFECYCLEPOLICYPRIVATEUSERKEY is set to VARIABLE, then every user can change field EXPIRE-DATE for 
those keys the user owns. 
192 • SSHCOM Command Reference  HP NonStop SSH Reference Manual 










