← Blog · Guides

What Key Type Is Your Deploy Key? A One-Line ssh-keygen Check

December 5, 2026

Run ssh-keygen with no -t option and it picks a key type for you. If your deploy key was made that way, from a line in a CI script or a setup guide, its type is one nobody chose.

That default is being changed in the OpenSSH source. A commit merged into the portable OpenSSH tree on 5 December 2026 carries the message "switch default key type generated to ECDSA NISTP384". The diff touches one file, ssh-keygen.c, and changes two definitions: the default key type name goes from ed25519 to ecdsa, and the default ECDSA size from 256 to 384 bits.

Be clear about what that is. It is a commit in a source tree, not a release. The commit names no OpenSSH version, and we have not looked for when it will reach any operating system, container image or CI runner. Nothing on your machine changed this week because of it. What you can do today is find out what you are running and what your keys are, and that is the rest of this article. We ran every command below before printing it.

What your ssh-keygen generates today

Make a throwaway key in the current directory with no type given, then ask what it is. The -f matters: without it, ssh-keygen offers to write into ~/.ssh.

ssh -V
ssh-keygen -q -N '' -C probe -f ./probe_key
ssh-keygen -l -f ./probe_key.pub

On the two versions we tried, OpenSSH 10.5p1 on macOS and OpenSSH 9.6p1 on Ubuntu, the last line ended the same way:

256 SHA256:Tcv1hG+nCD0FaikKHwOAggK/vxXwVtrpMqCnXY4aP6E probe (ED25519)

The word in brackets is the type. Delete probe_key and probe_key.pub afterwards. If a later version of your tools prints (ECDSA) there with 384 at the front, you have the new default.

What type is a key you already have

# fingerprint line: bits, hash, comment, (TYPE)
ssh-keygen -l -f ./deploy_key.pub

# the type string a server sees is the first field of the public key
cut -d' ' -f1 ./deploy_key.pub

# only the private key to hand? derive the public half and read its first field
ssh-keygen -y -f ./deploy_key | cut -d' ' -f1

# every key in an authorized_keys file, one line each
ssh-keygen -l -f ~/.ssh/authorized_keys

The first field is ssh-ed25519 for an Ed25519 key and ecdsa-sha2-nistp384 for an ECDSA P-384 key. The last command is the useful one on a server: it lists every key allowed to log in, with its type, so you can see what is really in use.

Why a type you did not choose can surprise you

Three places where a script quietly depends on the type:

  • The file name. With no -f, the key is saved under a name taken from its type. The manual lists ~/.ssh/id_ed25519 for one and ~/.ssh/id_ecdsa for the other. A script that runs a bare ssh-keygen and then reads ~/.ssh/id_ed25519.pub depends on the default staying what it was.
  • The first field of the public key. Anything that matches on it, such as a form that validates a pasted key, a pattern in a provisioning script or an allowlist, sees a different string.
  • The other end. A server only accepts the types it is configured to accept. ssh -Q key lists the types your own client supports. For a Git host or a server you do not run, its documentation is the place to check.

None of this says one type is better than the other. The point is narrower: a key type is part of your deploy setup, and it is better written down than inherited.

Pin the type in your own tooling

Wherever a script or a document creates a key, name the type and the file:

ssh-keygen -t ed25519 -N '' -C 'deploy@ci' -f ./deploy_key
# or, if ECDSA P-384 is what you want:
ssh-keygen -t ecdsa -b 384 -N '' -C 'deploy@ci' -f ./deploy_key

We ran both and read the keys back with ssh-keygen -l -f:

256 SHA256:h96mTzhMZW6IabotGD0afM2CLWAnfG6fHTA9KNqwGZ0 deploy@ci (ED25519)
384 SHA256:A47gWBnamhf8jossLBTzlgffyCBsph9h7MHz8oi402g deploy@ci (ECDSA)

With -t and -f given, the result is the same whichever version of OpenSSH runs the command, and the next person reading the script can see what was intended.

Where DeployBase stands

We read our own code and configuration on 6 December 2026 for this section; we did not log in with a P-384 key to test it.

  • The deploy key the dashboard generates for a Git-connected app is created with -t ed25519 written into the command, so the tool's default does not decide its type.
  • The form that adds your own SSH public key accepts keys whose first field is ssh-ed25519, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521 or ssh-rsa.
  • The effective configuration of the SSH service that customer logins go through lists both ssh-ed25519 and ecdsa-sha2-nistp384 among the public key types it accepts.

SSH access and Git deploy are available from the Pro plan.

The short version

Run the three-line check to see what your tools generate today. Read the type off the keys you already depend on. Then put -t and -f in every place that creates a key, so a default changing later is something you notice in a changelog and not in a failed deploy.

Source, read 6 December 2026: openssh-portable commit 5b63da24d393ec5f08ec4371e09b692fc86587a8 (authored 3 December 2026, committed 5 December 2026), read through the GitHub API. It is a source change, not a release, and this article makes no statement about when or whether it reaches any distribution. Command output is from OpenSSH 10.5p1 (macOS) and OpenSSH 9.6p1 (Ubuntu).