AWS Transfer for SFTP
User Guide

SshPublicKey

Provides information about the public Secure Shell (SSH) key that is associated with a user account for a specific server (as identified by ServerId). The information returned includes the date the key was imported, the public key contents, and the public key ID. A user can store more than one SSH public key associated with their user name on a specific SFTP server.

Contents

DateImported

The date that the public key was added to the user account.

Type: Timestamp

Required: Yes

SshPublicKeyBody

The content of the SSH public key as specified by the PublicKeyId.

Type: String

Length Constraints: Maximum length of 2048.

Pattern: ^ssh-rsa\s+[A-Za-z0-9+/]+[=]{0,3}(\s+.+)?\s*$

Required: Yes

SshPublicKeyId

The SshPublicKeyId parameter contains the identifier of the public key.

Type: String

Pattern: ^key-[0-9a-f]{17}$

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: