# SSH key on a user account

Tier 1 key, `key:ssh-key`. Page: https://ghtier.com/tier/keys-policies/ssh-key

Acts as the user's Git access, with no scopes to narrow it. That includes pushing changes to workflow files, which then run with the repository's secrets.

**Related permissions:** [Contents: Write (repository)](https://ghtier.com/tier/permissions/contents-write.md) (Tier 2), [Workflows: Write (repository)](https://ghtier.com/tier/permissions/workflows-write.md) (Tier 1), [Git SSH keys: Write (user)](https://ghtier.com/tier/permissions/keys-write.md) (Tier 1)

**Defenses (checklist):** [Audit and revoke stale PATs, unused SSH keys, and inactive accounts](https://ghtier.com/checklist/auth-audit-stale-creds.md)

**Strange findings:** [Removing someone in the IdP does not stop their tokens](https://ghtier.com/strange-findings/finding-sso-removal-keeps-tokens.md), [Revoking a fine-grained token leaves the SSH keys it added](https://ghtier.com/strange-findings/finding-revoked-fine-grained-pat-keeps-ssh-keys.md)

**Audit log events that show it:** [public_key.create](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise), [public_key.update](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise), [git.push](https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise)

**Sources:**
- [GitHub Docs: Connecting to GitHub with SSH](https://docs.github.com/en/authentication/connecting-to-github-with-ssh)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
