v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1458293303.1 KB

Adds a Secure Shell (SSH) public key to a user account 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.

post/#X-Amz-Target=TransferService.ImportSshPublicKey

Headers

X-Amz-Target'TransferService.ImportSshPublicKey' required

Request body

ServerIdstring required

A system-assigned unique identifier for a server.

SshPublicKeyBodystring required
<p>The public key portion of an SSH key pair.</p> <p>Transfer Family accepts RSA, ECDSA, and ED25519 keys.</p>
UserNamestring required

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

Response

Success

ServerIdstring required

A system-assigned unique identifier for a server.

SshPublicKeyIdstring required

The name given to a public key by the system that was imported.

UserNamestring required

A user name assigned to the <code>ServerID</code> value that you specified.