IBM Support

key.pl fails to create SSH keys as non-root

Troubleshooting


Problem

After installation of the CEC agent, key.pl returns an error when configuring unprompted SSH access to the HMC as a non-root user

Symptom

When running the key.pl script as a non-root user (E.g. tivadm), it fails with the following error:
$ /opt/IBM/ITM/aix523/pk/bin/key.pl
Enter the name of the primary HMC server: hmcserver
Enter the name of the HMC user[hscroot]:
Generating public/private rsa key pair.
Created directory '/home/tivadm/.ssh'.
Your identification has been saved in /home/tivadm/.ssh/id_rsa. Your public key has been saved in /home/tivadm/.ssh/id_rsa.pub. The key fingerprint is:
16:d7:3b:80:7f:28:aa:aa:23:b8:8e:e7:be:f6:04:9c tivadm@cecagent

The key's randomart image is:
+--[ RSA 2048]----+
| |
| . . |
| o o . |
| . . + o . |
| E S o + |
| . o . . . |
|. . . |
|= o. . |
|*X=+o |
+-----------------+
Setting up credential with hmcserver.
Would you like to set a backup HMC server yes/[no]?no
Would you like to continue setting a default managed system [yes]/no? yes
No managed system found.
Argument "" isn't numeric in numeric ge (>=) at
/opt/IBM/ITM/aix523/pk/bin/key.pl line 110, <> line 4.

[{"Product":{"code":"SSTFXA","label":"Tivoli Monitoring"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"ITM Agent System P V6","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions;Version Independent","Edition":"","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
10 July 2024

UID

swg21666203