Skip to content

/AWS1/CL_TRN=>IMPORTSSHPUBLICKEY()

About ImportSshPublicKey

Adds a Secure Shell (SSH) public key to a Transfer Family user identified by a UserName value assigned to the specific file transfer protocol-enabled server, identified by ServerId.

The response returns the UserName value, the ServerId value, and the name of the SshPublicKeyId.

Method Signature

IMPORTING

Required arguments:

IV_SERVERID TYPE /AWS1/TRNSERVERID

A system-assigned unique identifier for a server.

IV_SSHPUBLICKEYBODY TYPE /AWS1/TRNSSHPUBLICKEYBODY

The public key portion of an SSH key pair.

Transfer Family accepts RSA, ECDSA, and ED25519 keys.

IV_USERNAME TYPE /AWS1/TRNUSERNAME

The name of the Transfer Family user that is assigned to one or more servers.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_TRNIMPSSHPUBLICKEYRSP