---
title: "Security keys are now supported for SSH Git operations"
description: "GitHub now accepts SSH keys backed by hardware security keys (ecdsa-sk and ed25519-sk types) for Git operations, keeping the secret material on the device so a stolen private key file is useless without the physical key."
url: "https://swe.quest/articles/security-keys-are-now-supported-for-ssh-git-operations-fc04b308e5d1735b"
canonical: "https://github.blog/engineering/platform-security/security-keys-supported-ssh-git-operations/"
source: "GitHub Engineering"
published: "2021-05-10"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 6
tags: ["identity-auth","security","version-control"]
---

# Security keys are now supported for SSH Git operations

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2021-05-10, 6 min read, Announcement. Original: [https://github.blog/engineering/platform-security/security-keys-supported-ssh-git-operations/](https://github.blog/engineering/platform-security/security-keys-supported-ssh-git-operations/)

## Summary

GitHub now accepts SSH keys backed by hardware security keys (ecdsa-sk and ed25519-sk types) for Git operations, keeping the secret material on the device so a stolen private key file is useless without the physical key. Every remote operation (push, fetch, pull, clone) requires a user-presence tap that clients do not cache, which blocks malware from silently initiating requests, while local Git operations proceed uninterrupted. Keys are generated with ssh-keygen and registered like ordinary SSH keys, unused keys are automatically removed, and password authentication for Git is slated for removal later in the year in favor of PATs and SSH keys.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Version control](https://swe.quest/tags/version-control.md) (Engineering practices)

## Prerequisites

- SSH key authentication ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))
- Git remote operations

## Keywords

GitHub, SSH, ed25519-sk, ecdsa-sk, YubiKey, WebAuthn, U2F, ssh-keygen

## Related posts

- [Post-quantum security for SSH access on GitHub](https://swe.quest/articles/post-quantum-security-for-ssh-access-on-github-48c898bb38241343.md): GitHub Engineering · 2025-09-15 · Medium · 3 min read · Cryptography, Networking
  GitHub is adding the hybrid post-quantum SSH key exchange sntrup761x25519-sha512 (Streamlined NTRU Prime combined with X25519 ECDH) to its Git SSH endpoints on September 17, 2025.
- [Enforcing device trust on code changes](https://swe.quest/articles/enforcing-device-trust-on-code-changes-57bfbdc46c3e8f7c.md): Figma · 2023-12-08 · Medium · 9 min read · Supply chain security, Identity & auth, Version control, CI/CD
  Figma requires code merged into GitHub release branches to come from company-managed MacBooks by signing commits with short-lived X.509 Okta Device Trust certificates instead of relying on GitHub's "Verified" badge, which trusts personal GPG keys and web-flow signatures that compromised tokens can obtain.
- [How to Create and Use an AI Git Agent](https://swe.quest/articles/how-to-create-and-use-an-ai-git-agent-f412a4e8174fad8b.md): Docker · 2024-12-16 · Medium · 6 min read · AI agents, Version control, Containers, Developer tools
  An LLM-driven Git agent runs Git commands inside an alpine/git container while authenticating with the user's own SSH keys, so non-Git users such as UI tech writers can fetch, check out PR branches and get a three-dot diff of changed files.
- [Using SSH keys for Private Package Management](https://swe.quest/articles/using-ssh-keys-for-private-package-management-96bdd23f8fb1436c.md): Render · 2024-02-23 · Medium · 4 min read · CI/CD, Deployment, Cloud platforms
  Builds on Render can install dependencies from private Git repositories by storing a Base64-encoded, passphrase-less SSH private key (e.g. ed25519) as an SSH\_KEY variable in a shared environment group.
- [Security Disclosure Recommendation: Check for Anomalous GitHub Access](https://swe.quest/articles/security-disclosure-recommendation-check-for-anomalous-github-access-acf8b4a01ac2abcd.md): Railway · 2026-10-22 · Medium · 1 min read · Identity & auth, Incidents & postmortems, Security
  Railway users who connect GitHub, following the October 21, 2026 security disclosure, should audit their GitHub accounts for persistence an attacker may have left behind, then confirm no unexpected commits reached their deployments.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
