# SSH using Github team membership via OAuth2 + 2FA

DevFeed: [SSH using Github team membership via OAuth2 + 2FA](<https://devfeed.tech/articles/ssh-using-github-team-membership-via-oauth2-2fa-29802.md>)

Original publisher: [Read original article](<https://goteleport.com/blog/replace-static-ssh-keys-with-github-oauth/>)

Author: ev@goteleport.com (Ev Kontsevoy)

Published: 2018-01-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Teleport](<https://devfeed.tech/sources/teleport.md>)

Topics: [ssh](<https://devfeed.tech/topics/ssh.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [OAuth 2.0](<https://devfeed.tech/topics/oauth2.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Security](<https://devfeed.tech/topics/security.md>), [public key](<https://devfeed.tech/topics/public-key.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [github](<https://devfeed.tech/tags/github.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [oauth2](<https://devfeed.tech/tags/oauth2.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [public-key](<https://devfeed.tech/tags/public-key.md>), [security](<https://devfeed.tech/tags/security.md>), [ssh](<https://devfeed.tech/tags/ssh.md>)

## AI overview

This tutorial explains how to use GitHub team membership through OAuth2 and 2FA to manage SSH access to server infrastructure. It describes replacing static SSH keys with automatically expiring SSH certificates, so access can be removed when a team member leaves the organization.

## Source excerpt

In this post we show you how to use Github as an identity manager to control who has access to your server infrastructure through SSH