Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Delete a server host key

Focus mode
Delete a server host key - AWS Transfer Family

On the AWS Transfer Family console, you can delete a server host key.

To delete a server host key
  1. Open the AWS Transfer Family console at https://console.aws.amazon.com/transfer/.

  2. In the left navigation pane, choose Servers, and then choose a server that uses the SFTP protocol.

  3. On the server details page, scroll down to the Server host keys section.

    The Server host keys console section.
  4. In the Server Host Keys section, select a key, and then under Actions, choose Delete.

  5. In the confirmation dialog box that appears, enter the word delete, and then choose Delete to confirm that you want to delete the host key.

The host key is deleted from the Servers page.

To delete the host key by using the AWS CLI, use the DeleteHostKey API operation and provide the server ID and host key ID.

The following example delete-host-key AWS CLI command deletes a host key for the specified SFTP-enabled server.

aws transfer delete-host-key --server-id your-server-id --host-key-id your-host-key-id
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.