access: Managers
Creates a host-based trust relationship for the specified host. Adding host-based trusts provides many-to-one scripting solutions. Once a host equivalence relationship has been created with a client, users on that client can remotely execute commands on the Service Processor without being prompted for a password, provided one of the following conditions is met:
access add trust {-c | --client} HOST {-k | --keyfile} PUBLIC KEY FILE
| Arguments | Description |
|---|---|
{-c | --client} |
Specifies the host for which to create the relationship. |
{-k | --keyfile} |
Specifies the public key file. |
If the login is authorized by means of a directory service group mapping, the ssh command is executed as the proxy user on the Service Processor, either rmonitor, radmin, or rmanager.
Support is available for SSH protocol version 2 key types (RSA or DSA) only.
If DNS is enabled on the Service Processor, the client machine must be specified with its DNS name, not an IP address.
Generating Host Keys
The hosts ssh install should generate the host keys. If it does not, follow these steps to manually generate the key pair:
NOTE: Use scp to copy the files to either /tmp or to your home directory. The sp commands will then install the file specified on the command line to /pstore.
NOTE: If DNS is enabled on the Service Processor, you must specify the client that is used in the trust commands with the DNS name (not the IP).
Return Codes
Following are the return values for this command:
| Code | Numeric Code | Description |
|---|---|---|
| NWSE_Success | 0 | Command successfully completed. |
| NWSE_InvalidUsage | 1 | Invalid usage: bad parameter usage, conflicting options specified. |
| NWSE_RPCTimeout | 2 | Request was issued, but was not serviced by the server. RPC procedure timed out and the request may or may not have been serviced by the server. |
| NWSE_RPCNotConnected | 3 | Unable to connect to the RPC server. |
| NWSE_NoPermission | 6 | Not authorized to perform this operation. |
| NWSE_FileError | 18 | File open, missing, or read or write error occurred. Unable to open or read the public key file. |
| NWSE_Exist | 19 | A trust relationship is already present for the specified host. |