Skip to content

Need a more secure redshift public key

0

When a redshift cluster is created, a public key is made available that can be used to authenticate the cluster with an EC2 instance via ssh (for instance).

Apparently this key is a SHA1 RSA key. This type of key has been deprecated for security reasons.

I would prefer not to alter my default sshd config to allow an insecure key. Is there a way to have redshift associate a more secure key with the cluster?

asked a year ago132 views

2 Answers
6

This is the current limitations:

  • The public key used for Redshift cluster authentication is RSA-SHA1, which is embedded in the cluster metadata.
  • AWS does not currently provide a configuration option to upload or associate a custom SSH key with Redshift clusters.
  • Modifying your EC2 instance’s sshd_config to allow SHA1 keys is discouraged for security reasons.

Workarounds:

  1. Use a Bastion Host with Strong Key Authentication Instead of connecting directly to Redshift:
  • Set up a bastion EC2 instance with ED25519 or RSA-SHA256 keys.
  • Restrict Redshift access to only that bastion via security groups.
  • Use SSH tunneling through the bastion to reach Redshift securely.
  1. Use IAM Authentication for Redshift
  • Use IAM database authentication instead of SSH.
  • This avoids the need for SSH keys entirely and leverages AWS IAM for secure access.
EXPERT

answered a year ago

0

Hey,

Hope you're keeping well.

Amazon Redshift does not currently allow replacing or uploading a custom SSH public key for the cluster’s host systems, and the built‑in key type is fixed. If you need to avoid enabling SHA1 in your SSH configuration, the recommended approach is to avoid direct SSH to Redshift nodes entirely. You can use a hardened bastion host with ED25519 or RSA‑SHA256 keys to proxy connections, or move to IAM database authentication or JDBC/ODBC over TLS for secure access without SSH. This keeps your EC2 and client systems aligned with modern crypto standards while still allowing secure interaction with the cluster.

Thanks and regards,
Taz

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.