-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLICENSE
215 lines (215 loc) · 151 KB
/
LICENSE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="alternate icon" type="image/png" href="/assets/images/site/favicon.png"/><link rel="icon" type="image/svg+xml" href="/assets/images/site/favicon.svg"/><meta name="google-site-verification" content="c1kuD-K2HIVF635lypcsWPoD4kilo5-jA_wBFyT4uMY"/><meta name="csrf-token" content="aROccI1S-SZpfSOcna7P23NBlCgq-tRcTCV8"/><title>Generating a new SSH key and adding it to the ssh-agent - GitHub Docs</title><meta name="description" content="After you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent."/><link rel="alternate" hrefLang="en" href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"/><link rel="alternate" hrefLang="zh-Hans" href="https://docs.github.com/cn/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"/><link rel="alternate" hrefLang="ja" href="https://docs.github.com/ja/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"/><link rel="alternate" hrefLang="es" href="https://docs.github.com/es/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"/><link rel="alternate" hrefLang="pt" href="https://docs.github.com/pt/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"/><link rel="alternate" hrefLang="de" href="https://docs.github.com/de/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"/><meta name="keywords" content="SSH"/><meta name="path-language" content="en"/><meta name="path-version" content="free-pro-team@latest"/><meta name="path-product" content="authentication"/><meta name="path-article" content="authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"/><meta name="page-document-type" content="article"/><meta name="status" content="200"/><meta property="og:site_name" content="GitHub Docs"/><meta property="og:title" content="Generating a new SSH key and adding it to the ssh-agent - GitHub Docs"/><meta property="og:type" content="article"/><meta property="og:url" content="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"/><meta property="og:image" content="https://github.githubassets.com/images/modules/open_graph/github-logo.png"/><meta name="next-head-count" content="26"/><link rel="preload" href="/_next/static/css/5962864995ec90601dd8.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5962864995ec90601dd8.css" data-n-g=""/><link rel="preload" href="/_next/static/css/c41198ac4cfab4e574d1.css" as="style"/><link rel="stylesheet" href="/_next/static/css/c41198ac4cfab4e574d1.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-af28476a2e7790fd48db.js" defer=""></script><script src="/_next/static/chunks/framework-2b8be631586cbbc6886e.js" defer=""></script><script src="/_next/static/chunks/main-b8a6769be74e1aa37530.js" defer=""></script><script src="/_next/static/chunks/pages/_app-b63c58851710c2876063.js" defer=""></script><script src="/_next/static/chunks/0e226fb0-87d846b305d6ce1e6784.js" defer=""></script><script src="/_next/static/chunks/991-e27e6ca224a9f406666d.js" defer=""></script><script src="/_next/static/chunks/729-74bb5ca202eb8230e4e7.js" defer=""></script><script src="/_next/static/chunks/100-e15f0533bbaa6277ca3c.js" defer=""></script><script src="/_next/static/chunks/491-e6eb7fccb0a398a87291.js" defer=""></script><script src="/_next/static/chunks/pages/%5BversionId%5D/%5BproductId%5D/%5B...restPage%5D-afd178dc818d25b6b364.js" defer=""></script><script src="/_next/static/edGgo7ZaGV6U16AUhDsto/_buildManifest.js" defer=""></script><script src="/_next/static/edGgo7ZaGV6U16AUhDsto/_ssgManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.1">.bpHkHg{position:relative;display:inline-block;padding:6px 16px;font-family:inherit;font-weight:600;line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:6px;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-text-decoration:none;text-decoration:none;text-align:center;font-size:14px;}/*!sc*/
.bpHkHg:hover{-webkit-text-decoration:none;text-decoration:none;}/*!sc*/
.bpHkHg:focus{outline:none;}/*!sc*/
.bpHkHg:disabled{cursor:default;}/*!sc*/
.bpHkHg:disabled svg{opacity:0.6;}/*!sc*/
data-styled.g8[id="ButtonBase-sc-181ps9o-0"]{content:"bpHkHg,"}/*!sc*/
.eAEDUX{color:#0366d6;border:1px solid rgba(27,31,35,0.15);background-color:#fafbfc;box-shadow:0 1px 0 rgba(27,31,35,0.04);}/*!sc*/
.eAEDUX:hover{color:#ffffff;background-color:#0366d6;border-color:rgba(27,31,35,0.15);box-shadow:0 1px 0 rgba(27,31,35,0.1);}/*!sc*/
.eAEDUX:focus{border-color:rgba(27,31,35,0.15);box-shadow:0 0 0 3px rgba(0,92,197,0.4);}/*!sc*/
.eAEDUX:active{color:#ffffff;background-color:hsla(212,97%,40%,1);box-shadow:inset 0 1px 0 rgba(5,38,76,0.2);border-color:rgba(27,31,35,0.15);}/*!sc*/
.eAEDUX:disabled{color:rgba(3,102,214,0.5);background-color:#fafbfc;border-color:rgba(27,31,35,0.15);}/*!sc*/
data-styled.g12[id="ButtonOutline-sc-15gta9l-0"]{content:"eAEDUX,"}/*!sc*/
.wQTPf > summary{list-style:none;}/*!sc*/
.wQTPf > summary::-webkit-details-marker{display:none;}/*!sc*/
data-styled.g56[id="Details-ssy9qz-0"]{content:"wQTPf,"}/*!sc*/
.cbUQRS{position:relative;display:inline-block;}/*!sc*/
data-styled.g61[id="Dropdown__StyledDetails-sc-16yoecj-0"]{content:"cbUQRS,"}/*!sc*/
.hKmZUy{border:4px solid transparent;margin-left:12px;border-top-color:currentcolor;border-bottom-width:0;content:'';display:inline-block;height:0;vertical-align:middle;width:0;}/*!sc*/
data-styled.g62[id="Dropdown__DropdownCaret-sc-16yoecj-1"]{content:"hKmZUy,"}/*!sc*/
.bwhlIP{background-clip:padding-box;background-color:#ffffff;border:1px solid #e1e4e8;border-radius:6px;box-shadow:0 8px 24px rgba(149,157,165,0.2);left:0;list-style:none;margin-top:2px;padding:5px 0 5px 0 !important;position:absolute;top:100%;width:160px;z-index:100;right:0;left:auto;}/*!sc*/
.bwhlIP::before{position:absolute;display:inline-block;content:'';}/*!sc*/
.bwhlIP::after{position:absolute;display:inline-block;content:'';}/*!sc*/
.bwhlIP::before{border:8px solid transparent;border-bottom-color:#ffffff;}/*!sc*/
.bwhlIP::after{border:7px solid transparent;border-bottom-color:#ffffff;}/*!sc*/
.bwhlIP > ul{list-style:none;}/*!sc*/
.bwhlIP::before{top:-16px;right:9px;left:auto;}/*!sc*/
.bwhlIP::after{top:-14px;right:10px;left:auto;}/*!sc*/
data-styled.g63[id="Dropdown__DropdownMenu-sc-16yoecj-2"]{content:"bwhlIP,"}/*!sc*/
.gcRVWV{display:block;padding:4px 10px 4px 15px;overflow:hidden;color:#24292e;text-overflow:ellipsis;white-space:nowrap;}/*!sc*/
.gcRVWV a{color:#24292e;-webkit-text-decoration:none;text-decoration:none;display:block;overflow:hidden;color:#24292e;text-overflow:ellipsis;white-space:nowrap;}/*!sc*/
.gcRVWV:focus,.gcRVWV a:focus{color:#ffffff;-webkit-text-decoration:none;text-decoration:none;background-color:#0366d6;}/*!sc*/
.gcRVWV:hover,.gcRVWV:hover a{color:#ffffff;-webkit-text-decoration:none;text-decoration:none;background-color:#0366d6;outline:none;}/*!sc*/
data-styled.g64[id="Dropdown__DropdownItem-sc-16yoecj-3"]{content:"gcRVWV,"}/*!sc*/
.ucXfF ul{width:unset;}/*!sc*/
data-styled.g118[id="LanguagePicker___StyledDropdown-sc-1vjz4bo-0"]{content:"ucXfF,"}/*!sc*/
.cPqkmV ul{width:unset;}/*!sc*/
data-styled.g120[id="ArticleVersionPicker___StyledDropdown-sc-5dcjuc-0"]{content:"cPqkmV,"}/*!sc*/
</style></head><body data-color-mode="auto" data-dark-theme="dark" data-light-theme="light"><div id="__next"><div class="d-lg-flex"><div class="d-none d-lg-block color-bg-tertiary position-sticky top-0 overflow-y-auto flex-shrink-0 pb-5" style="width:286px;height:100vh"><div class="d-flex flex-items-center p-4 position-sticky top-0 color-bg-tertiary" style="z-index:3" id="github-logo" role="banner"><a rel="" class="color-text-primary" aria-hidden="true" tabindex="-1" href="/en"><svg aria-hidden="true" role="img" class="octicon octicon-mark-github" viewBox="0 0 16 16" width="32" height="32" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg></a><a rel="" class="f4 text-semibold color-text-primary no-underline no-wrap pl-2 flex-auto" href="/en">GitHub Docs</a></div><nav><ul data-testid="sidebar"><li title="Home"><a href="/en" class="f6 pl-4 pr-5 ml-n1 pb-1 color-text-primary"><svg aria-hidden="true" role="img" class="mr-1" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M7.78 12.53a.75.75 0 01-1.06 0L2.47 8.28a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L4.81 7h7.44a.75.75 0 010 1.5H4.81l2.97 2.97a.75.75 0 010 1.06z"></path></svg>All products</a></li><li data-testid="sidebar-product" title="Authentication" class="my-2"><a rel="" class="pl-4 pr-5 pb-1 f4 color-text-primary no-underline" href="/en/authentication">Authentication</a></li><li class="my-3"><ul class="list-style-none"><li data-is-active-category="false" data-is-current-page="false" class="py-1"><details class="details-reset"><summary class="outline-none"><div class="d-flex flex-justify-between"><div class="pl-4 pr-1 py-2 f6 text-uppercase d-block flex-auto mr-3 color-text-primary no-underline text-bold">Account security</div><span style="margin-top:7px" class="flex-shrink-0 pr-3"><svg aria-hidden="true" role="img" class="opacity-60" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"></path></svg></span></div></summary><ul data-testid="sidebar-article-group" class="list-style-none pb-2"><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/about-authentication-to-github">Authentication to GitHub</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/creating-a-strong-password">Create a strong password</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/updating-your-github-access-credentials">Update access credentials</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token">Create a PAT</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/reviewing-your-ssh-keys">Reviewing your SSH keys</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/reviewing-your-deploy-keys">Deploy keys</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/authorizing-oauth-apps">Authorizing OAuth Apps</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/authorizing-github-apps">Authorizing GitHub Apps</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-integrations">Authorized integrations</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/connecting-with-third-party-applications">Third-party applications</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-applications-oauth">Review OAuth apps</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation">Token expiration</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log">Security log</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository">Remove sensitive data</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls">About anonymized URLs</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses">GitHub's IP addresses</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints">SSH key fingerprints</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/sudo-mode">Sudo mode</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/keeping-your-account-and-data-secure/preventing-unauthorized-access">Unauthorized access</a></li></ul></details></li><li data-is-active-category="false" data-is-current-page="false" class="py-1"><details class="details-reset"><summary class="outline-none"><div class="d-flex flex-justify-between"><div class="pl-4 pr-1 py-2 f6 text-uppercase d-block flex-auto mr-3 color-text-primary no-underline text-bold">Secure your account with 2FA</div><span style="margin-top:7px" class="flex-shrink-0 pr-3"><svg aria-hidden="true" role="img" class="opacity-60" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"></path></svg></span></div></summary><ul data-testid="sidebar-article-group" class="list-style-none pb-2"><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/about-two-factor-authentication">About 2FA</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication">Configure 2FA</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods">Configure 2FA recovery</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/accessing-github-using-two-factor-authentication">Access GitHub with 2FA</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials">Recover an account with 2FA</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-two-factor-authentication-delivery-methods-for-your-mobile-device">Change 2FA delivery method</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/countries-where-sms-authentication-is-supported">Countries supporting SMS</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/disabling-two-factor-authentication-for-your-personal-account">Disable 2FA</a></li></ul></details></li><li data-is-active-category="false" data-is-current-page="false" class="py-1"><details class="details-reset"><summary class="outline-none"><div class="d-flex flex-justify-between"><div class="pl-4 pr-1 py-2 f6 text-uppercase d-block flex-auto mr-3 color-text-primary no-underline text-bold">Authenticate with SAML</div><span style="margin-top:7px" class="flex-shrink-0 pr-3"><svg aria-hidden="true" role="img" class="opacity-60" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"></path></svg></span></div></summary><ul data-testid="sidebar-article-group" class="list-style-none pb-2"><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on">SAML single sign-on</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/authenticating-with-saml-single-sign-on/authorizing-an-ssh-key-for-use-with-saml-single-sign-on">SSH Key with SAML</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on">PAT with SAML</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/authenticating-with-saml-single-sign-on/viewing-and-managing-your-active-saml-sessions">Active SAML sessions</a></li></ul></details></li><li data-is-active-category="true" data-is-current-page="false" class="py-1 color-bg-info"><details open="" class="details-reset"><summary class="outline-none"><div class="d-flex flex-justify-between"><div class="pl-4 pr-1 py-2 f6 text-uppercase d-block flex-auto mr-3 color-text-primary no-underline text-bold">Connect with SSH</div><span style="margin-top:7px" class="flex-shrink-0 pr-3"><svg aria-hidden="true" role="img" class="opacity-60 rotate-180" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"></path></svg></span></div></summary><ul data-testid="sidebar-article-group" class="list-style-none pb-2"><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/connecting-to-github-with-ssh/about-ssh">About SSH</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys">Check for existing SSH key</a></li><li data-testid="sidebar-article" data-is-current-page="true" class="position-relative SidebarProduct_sidebarArticle____jm- text-bold SidebarProduct_sidebarArticleActive__2_znz"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-link" href="/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Generate new SSH key</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account">Add a new SSH key</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection">Test your SSH connection</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases">SSH key passphrases</a></li></ul></details></li><li data-is-active-category="false" data-is-current-page="false" class="py-1"><details class="details-reset"><summary class="outline-none"><div class="d-flex flex-justify-between"><div class="pl-4 pr-1 py-2 f6 text-uppercase d-block flex-auto mr-3 color-text-primary no-underline text-bold">Troubleshooting SSH</div><span style="margin-top:7px" class="flex-shrink-0 pr-3"><svg aria-hidden="true" role="img" class="opacity-60" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"></path></svg></span></div></summary><ul data-testid="sidebar-article-group" class="list-style-none pb-2"><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port">Use SSH over HTTPS port</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/recovering-your-ssh-key-passphrase">Recover SSH key passphrase</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/deleted-or-missing-ssh-keys">Deleted or missing SSH keys</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-permission-denied-publickey">Permission denied (publickey)</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-bad-file-number">Error: Bad file number</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-key-already-in-use">Error: Key already in use</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-permission-to-userrepo-denied-to-other-user">Permission denied other-user</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-permission-to-userrepo-denied-to-userother-repo">Permission denied other-repo</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-agent-admitted-failure-to-sign">Agent failure to sign</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-ssh-add-illegal-option----k">ssh-add: illegal option -- K</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-ssl-certificate-problem-verify-that-the-ca-cert-is-ok">SSL certificate problem</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-unknown-key-type">Error: Unknown key type</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-ssh/error-were-doing-an-ssh-key-audit">SSH key audit</a></li></ul></details></li><li data-is-active-category="false" data-is-current-page="false" class="py-1"><details class="details-reset"><summary class="outline-none"><div class="d-flex flex-justify-between"><div class="pl-4 pr-1 py-2 f6 text-uppercase d-block flex-auto mr-3 color-text-primary no-underline text-bold">Verify commit signatures</div><span style="margin-top:7px" class="flex-shrink-0 pr-3"><svg aria-hidden="true" role="img" class="opacity-60" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"></path></svg></span></div></summary><ul data-testid="sidebar-article-group" class="list-style-none pb-2"><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/managing-commit-signature-verification/about-commit-signature-verification">Commit signature verification</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits">Displaying verification for all commits</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/managing-commit-signature-verification/checking-for-existing-gpg-keys">Existing GPG keys</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key">Generating a new GPG key</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account">Add a new GPG key</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key">Tell Git your signing key</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/managing-commit-signature-verification/associating-an-email-with-your-gpg-key">Associate email with GPG key</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/managing-commit-signature-verification/signing-commits">Signing commits</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/managing-commit-signature-verification/signing-tags">Signing tags</a></li></ul></details></li><li data-is-active-category="false" data-is-current-page="false" class="py-1"><details class="details-reset"><summary class="outline-none"><div class="d-flex flex-justify-between"><div class="pl-4 pr-1 py-2 f6 text-uppercase d-block flex-auto mr-3 color-text-primary no-underline text-bold">Troubleshoot verification</div><span style="margin-top:7px" class="flex-shrink-0 pr-3"><svg aria-hidden="true" role="img" class="opacity-60" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"></path></svg></span></div></summary><ul data-testid="sidebar-article-group" class="list-style-none pb-2"><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-commit-signature-verification/checking-your-commit-and-tag-signature-verification-status">Check verification status</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-commit-signature-verification/updating-an-expired-gpg-key">Update expired GPG key</a></li><li data-testid="sidebar-article" data-is-current-page="false" class="position-relative SidebarProduct_sidebarArticle____jm-"><a rel="" class="d-block pl-6 pr-5 py-1 no-underline color-text-primary" href="/en/authentication/troubleshooting-commit-signature-verification/using-a-verified-email-address-in-your-gpg-key">Use verified email in GPG key</a></li></ul></details></li></ul></li></ul></nav></div><main class="flex-1 min-width-0"><div class="border-bottom color-border-secondary no-print"><div></div><header class="container-xl px-3 px-md-6 pt-3 pb-3 position-relative" style="z-index:2"><div class="d-none d-lg-flex flex-justify-end" data-testid="desktop-header"><div class="py-2"><details class="Details-ssy9qz-0 Dropdown__StyledDetails-sc-16yoecj-0 wQTPf cbUQRS LanguagePicker___StyledDropdown-sc-1vjz4bo-0 ucXfF" data-testid="language-picker"><summary>English<div class="Dropdown__DropdownCaret-sc-16yoecj-1 hKmZUy"></div></summary><ul direction="sw" class="Dropdown__DropdownMenu-sc-16yoecj-2 bwhlIP"><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a href="/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="">English</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a href="/cn/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="">简体中文<!-- --> (<!-- -->Simplified Chinese<!-- -->)</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a href="/ja/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="">日本語<!-- --> (<!-- -->Japanese<!-- -->)</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a href="/es/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="">Español<!-- --> (<!-- -->Spanish<!-- -->)</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a href="/pt/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="">Português do Brasil<!-- --> (<!-- -->Portuguese<!-- -->)</a></li></ul></details></div><div class="d-inline-block ml-4"><div data-testid="search" aria-hidden="true"><div class="position-relative z-2"><form role="search" class="width-full d-flex" novalidate=""><input type="search" data-testid="site-search-input" class="Search_searchInput__ydDV7 form-control px-5 f4 py-2 Search_searchInputOverlay__22svo" style="background:var(--color-bg-primary) url("/assets/images/octicons/search.svg") no-repeat 6px" placeholder="Search topics, products..." autoComplete="off" autoCorrect="off" autoCapitalize="off" spellcheck="false" maxLength="512" value=""/><button class="d-none" type="submit" title="Submit the search query." hidden=""></button></form></div></div><div id="search-results-container" class="z-1 pb-4 px-3 Search_resultsContainer__3RRWL Search_resultsContainerOverlay__1LwY4"><div class="mt-2 px-6"><span>No results found<!-- -->.</span></div></div><div class="-z-1 d-none"></div></div></div><div class="d-lg-none" data-testid="mobile-header"><div class="d-flex flex-justify-between"><div class="d-flex flex-items-center" id="github-logo-mobile" role="banner"><a rel="" aria-hidden="true" tabindex="-1" href="/en"><svg aria-hidden="true" role="img" class="color-icon-primary" viewBox="0 0 16 16" width="32" height="32" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg></a><a rel="" class="f4 text-semibold color-text-primary no-underline no-wrap pl-2" href="/en">GitHub Docs</a></div><div><button data-testid="mobile-menu-button" aria-label="Navigation Menu" class="ButtonBase-sc-181ps9o-0 ButtonOutline-sc-15gta9l-0 bpHkHg eAEDUX"><svg aria-hidden="true" role="img" class="octicon octicon-three-bars" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M1 2.75A.75.75 0 011.75 2h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 2.75zm0 5A.75.75 0 011.75 7h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 7.75zM1.75 12a.75.75 0 100 1.5h12.5a.75.75 0 100-1.5H1.75z"></path></svg></button></div></div><div class="relative"><div class="width-full position-absolute left-0 right-0 color-shadow-large color-bg-primary px-3 px-md-6 pb-3 d-none"><div class="mt-3 mb-2"><h4 class="f5 text-normal color-text-secondary">Explore by product</h4><details class="Details-ssy9qz-0 wQTPf details-reset"><summary class="color-text-link outline-none" role="button" aria-label="Toggle products list"><div id="current-product" class="d-flex flex-items-center flex-justify-between py-2"><span>Authentication</span><svg aria-hidden="true" role="img" class="arrow ml-md-1" viewBox="0 0 24 24" width="24" height="24" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M5.22 8.72a.75.75 0 000 1.06l6.25 6.25a.75.75 0 001.06 0l6.25-6.25a.75.75 0 00-1.06-1.06L12 14.44 6.28 8.72a.75.75 0 00-1.06 0z"></path></svg></div></summary><div id="homepages" style="z-index:6"><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/get-started">Get started</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/account-and-profile">Account and profile</a><a rel="" class="d-block py-2 color-text-link text-underline active" href="/en/authentication">Authentication</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/repositories">Repositories</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/github">GitHub</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/[email protected]/admin">Enterprise administrators</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/billing">Billing and payments</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/organizations">Organizations</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/code-security">Code security</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/issues">GitHub Issues</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/actions">GitHub Actions</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/codespaces">GitHub Codespaces</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/packages">GitHub Packages</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/search-github">Search on GitHub</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/developers">Developers</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/rest">REST API</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/graphql">GraphQL API</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/github-cli">GitHub CLI</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/discussions">GitHub Discussions</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/sponsors">GitHub Sponsors</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/communities">Building communities</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/pages">GitHub Pages</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/education">Education</a><a rel="" class="d-block py-2 Link--primary no-underline" href="/en/desktop">GitHub Desktop</a><a rel="noopener" class="d-block py-2 Link--primary no-underline" href="https://atom.io/docs">Atom<span class="ml-1"><svg aria-hidden="true" role="img" class="octicon octicon-link-external" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M10.604 1h4.146a.25.25 0 01.25.25v4.146a.25.25 0 01-.427.177L13.03 4.03 9.28 7.78a.75.75 0 01-1.06-1.06l3.75-3.75-1.543-1.543A.25.25 0 0110.604 1zM3.75 2A1.75 1.75 0 002 3.75v8.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 12.25v-3.5a.75.75 0 00-1.5 0v3.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-8.5a.25.25 0 01.25-.25h3.5a.75.75 0 000-1.5h-3.5z"></path></svg></span></a><a rel="noopener" class="d-block py-2 Link--primary no-underline" href="https://electronjs.org/docs">Electron<span class="ml-1"><svg aria-hidden="true" role="img" class="octicon octicon-link-external" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M10.604 1h4.146a.25.25 0 01.25.25v4.146a.25.25 0 01-.427.177L13.03 4.03 9.28 7.78a.75.75 0 01-1.06-1.06l3.75-3.75-1.543-1.543A.25.25 0 0110.604 1zM3.75 2A1.75 1.75 0 002 3.75v8.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 12.25v-3.5a.75.75 0 00-1.5 0v3.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-8.5a.25.25 0 01.25-.25h3.5a.75.75 0 000-1.5h-3.5z"></path></svg></span></a><a rel="noopener" class="d-block py-2 Link--primary no-underline" href="https://codeql.github.com/docs">CodeQL<span class="ml-1"><svg aria-hidden="true" role="img" class="octicon octicon-link-external" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M10.604 1h4.146a.25.25 0 01.25.25v4.146a.25.25 0 01-.427.177L13.03 4.03 9.28 7.78a.75.75 0 01-1.06-1.06l3.75-3.75-1.543-1.543A.25.25 0 0110.604 1zM3.75 2A1.75 1.75 0 002 3.75v8.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 12.25v-3.5a.75.75 0 00-1.5 0v3.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-8.5a.25.25 0 01.25-.25h3.5a.75.75 0 000-1.5h-3.5z"></path></svg></span></a></div></details></div><div class="border-top py-2"><details class="Details-ssy9qz-0 wQTPf details-reset"><summary class="outline-none" aria-label="Toggle language list"><div class="d-flex flex-items-center flex-justify-between py-2"><span>English</span><svg aria-hidden="true" role="img" class="arrow ml-md-1" viewBox="0 0 24 24" width="24" height="24" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M5.22 8.72a.75.75 0 000 1.06l6.25 6.25a.75.75 0 001.06 0l6.25-6.25a.75.75 0 00-1.06-1.06L12 14.44 6.28 8.72a.75.75 0 00-1.06 0z"></path></svg></div></summary><div><a href="/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="" class="d-block py-2 color-text-link text-underline active">English</a><a href="/cn/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="" class="d-block py-2 Link--primary no-underline">简体中文<!-- --> (<!-- -->Simplified Chinese<!-- -->)</a><a href="/ja/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="" class="d-block py-2 Link--primary no-underline">日本語<!-- --> (<!-- -->Japanese<!-- -->)</a><a href="/es/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="" class="d-block py-2 Link--primary no-underline">Español<!-- --> (<!-- -->Spanish<!-- -->)</a><a href="/pt/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="" class="d-block py-2 Link--primary no-underline">Português do Brasil<!-- --> (<!-- -->Portuguese<!-- -->)</a></div></details></div><div class="pt-3 border-top"><div data-testid="search" aria-hidden="true"><div class="position-relative z-2"><form role="search" class="width-full d-flex" novalidate=""><input type="search" data-testid="site-search-input" class="Search_searchInput__ydDV7 form-control px-5 f4 py-2 width-full" style="background:var(--color-bg-primary) url("/assets/images/octicons/search.svg") no-repeat 6px" placeholder="Search topics, products..." autoComplete="off" autoCorrect="off" autoCapitalize="off" spellcheck="false" maxLength="512" value=""/><button class="d-none" type="submit" title="Submit the search query." hidden=""></button></form></div></div><div id="search-results-container" class="z-1 pb-4 px-3 Search_resultsContainer__3RRWL"></div><div class="-z-1 d-none"></div></div></div></div></div></header></div><div class="container-xl px-3 px-md-6 my-4 my-lg-4"><div class="d-lg-flex flex-justify-between"><div class="d-block d-lg-none mb-2"><details class="Details-ssy9qz-0 Dropdown__StyledDetails-sc-16yoecj-0 wQTPf cbUQRS ArticleVersionPicker___StyledDropdown-sc-5dcjuc-0 cPqkmV" data-testid="article-version-picker"><summary class="btn btn-outline p-2 outline-none"><span class="d-md-none d-xl-inline-block">Article version:</span> <!-- -->GitHub.com<div class="Dropdown__DropdownCaret-sc-16yoecj-1 hKmZUy"></div></summary><ul direction="sw" class="Dropdown__DropdownMenu-sc-16yoecj-2 bwhlIP"><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">GitHub.com</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Enterprise Server 3.2</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Enterprise Server 3.1</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Enterprise Server 3.0</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Enterprise Server 2.22</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/github-ae@latest/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">GitHub AE</a></li><div class="pb-1"><a rel="" class="f6 no-underline color-text-tertiary pl-3 pr-2 no-wrap" href="/en/[email protected]/admin/all-releases">See all Enterprise releases</a></div></ul></details></div><div class="d-flex flex-items-center"><nav data-testid="breadcrumbs" class="f5 breadcrumbs" aria-label="Breadcrumb"><a rel="" data-testid="breadcrumb-link" title="product: Authentication" class="d-inline-block px-2" href="/en/authentication">Authentication</a><span class="color-text-tertiary">/</span><a rel="" data-testid="breadcrumb-link" title="category: Connect with SSH" class="d-inline-block px-2" href="/en/authentication/connecting-to-github-with-ssh">Connect with SSH</a><span class="color-text-tertiary">/</span><a rel="" data-testid="breadcrumb-link" title="article: Generate new SSH key" class="d-inline-block px-2 color-text-tertiary" href="/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Generate new SSH key</a></nav></div><div class="d-none d-lg-block"><details class="Details-ssy9qz-0 Dropdown__StyledDetails-sc-16yoecj-0 wQTPf cbUQRS ArticleVersionPicker___StyledDropdown-sc-5dcjuc-0 cPqkmV" data-testid="article-version-picker"><summary class="btn btn-outline p-2 outline-none"><span class="d-md-none d-xl-inline-block">Article version:</span> <!-- -->GitHub.com<div class="Dropdown__DropdownCaret-sc-16yoecj-1 hKmZUy"></div></summary><ul direction="sw" class="Dropdown__DropdownMenu-sc-16yoecj-2 bwhlIP"><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">GitHub.com</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Enterprise Server 3.2</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Enterprise Server 3.1</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Enterprise Server 3.0</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">Enterprise Server 2.22</a></li><li class="Dropdown__DropdownItem-sc-16yoecj-3 gcRVWV"><a rel="" href="/en/github-ae@latest/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent">GitHub AE</a></li><div class="pb-1"><a rel="" class="f6 no-underline color-text-tertiary pl-3 pr-2 no-wrap" href="/en/[email protected]/admin/all-releases">See all Enterprise releases</a></div></ul></details></div></div><div class="ArticleGridLayout_container__2YFOs mt-7"><div class="ArticleGridLayout_head__311XT"><div class="d-flex flex-items-baseline flex-justify-between"><h1 class="my-4 border-bottom-0">Generating a new SSH key and adding it to the ssh-agent</h1></div><div class="f2 color-text-secondary mb-3 Lead_container__7YW6Y" data-testid="lead"><p>After you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent.</p></div><nav class="UnderlineNav my-3"><div class="UnderlineNav-body"><a href="#" class="UnderlineNav-item platform-switcher" data-platform="mac">Mac</a><a href="#" class="UnderlineNav-item platform-switcher" data-platform="windows">Windows</a><a href="#" class="UnderlineNav-item platform-switcher" data-platform="linux">Linux</a></div></nav></div><div class="ArticleGridLayout_sidebar__1eMns border-bottom border-xl-0 pb-4 mb-5 pb-xl-0 mb-xl-0"><div class="ArticleGridLayout_sidebarContent__3bZPH"><h2 id="in-this-article" class="f5 mb-2"><a class="Link--primary" href="#in-this-article">In this article</a></h2><ul class="list-style-none pl-0 f5 mb-0"><li class="ml-0 mb-2 lh-condensed"><a href="#about-ssh-key-generation">About SSH key generation</a></li><li class="ml-0 mb-2 lh-condensed"><a href="#generating-a-new-ssh-key">Generating a new SSH key</a></li><li class="ml-0 mb-2 lh-condensed"><a href="#adding-your-ssh-key-to-the-ssh-agent">Adding your SSH key to the ssh-agent</a></li><li class="ml-0 mb-2 lh-condensed"><a href="#generating-a-new-ssh-key-for-a-hardware-security-key">Generating a new SSH key for a hardware security key</a></li><li class="ml-0 mb-2 lh-condensed"><a href="#further-reading">Further reading</a></li></ul></div></div><div data-search="article-body" class="ArticleGridLayout_content__gyipb"><div id="article-contents"><div class="MarkdownContent_markdownBody__2Fa4B markdown-body"><h2 id="about-ssh-key-generation"><a aria-hidden="" tabindex="-1" class="doctocat-link" href="#about-ssh-key-generation"><svg aria-hidden="" role="img" class="octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>About SSH key generation</h2>
<p>If you don't already have an SSH key, you must generate a new SSH key to use for authentication. If you're unsure whether you already have an SSH key, you can check for existing keys. For more information, see "<a href="/en/github/authenticating-to-github/checking-for-existing-ssh-keys">Checking for existing SSH keys</a>."</p>
<p>If you want to use a hardware security key to authenticate to GitHub, you must generate a new SSH key for your hardware security key. You must connect your hardware security key to your computer when you authenticate with the key pair. For more information, see the <a href="https://www.openssh.com/txt/release-8.2">OpenSSH 8.2 release notes</a>.</p>
<p>If you don't want to reenter your passphrase every time you use your SSH key, you can add your key to the SSH agent, which manages your SSH keys and remembers your passphrase.</p>
<h2 id="generating-a-new-ssh-key"><a aria-hidden="" tabindex="-1" class="doctocat-link" href="#generating-a-new-ssh-key"><svg aria-hidden="" role="img" class="octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Generating a new SSH key</h2>
<ol>
<li>
<p>Open <span class="platform-mac">Terminal</span><span class="platform-linux">Terminal</span><span class="platform-windows">Git Bash</span>.</p>
</li>
<li>
<p>Paste the text below, substituting in your GitHub email address.</p>
<pre><code class="hljs language-shell">$ ssh-keygen -t ed25519 -C "<em>[email protected]</em>"</code></pre>
<div class="extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5">
<p><strong>Note:</strong> If you are using a legacy system that doesn't support the Ed25519 algorithm, use:</p>
<pre><code class="hljs language-shell">$ ssh-keygen -t rsa -b 4096 -C "[email protected]"</code></pre>
</div>
This creates a new SSH key, using the provided email as a label.
<pre><code class="hljs language-shell">> Generating public/private ed25519 key pair.</code></pre>
</li>
<li>
<p>When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.</p>
<div class="extended-markdown mac">
<pre><code class="hljs language-shell">> Enter a file in which to save the key (/Users/<em>you</em>/.ssh/id_ed25519): <em>[Press enter]</em></code></pre>
</div>
<div class="extended-markdown windows">
<pre><code class="hljs language-shell">> Enter a file in which to save the key (/c/Users/<em>you</em>/.ssh/id_ed25519):<em>[Press enter]</em></code></pre>
</div>
<div class="extended-markdown linux">
<pre><code class="hljs language-shell">> Enter a file in which to save the key (/home/<em>you</em>/.ssh/id_ed25519): <em>[Press enter]</em></code></pre>
</div>
</li>
<li>
<p>At the prompt, type a secure passphrase. For more information, see <a href="/en/articles/working-with-ssh-key-passphrases">"Working with SSH key passphrases</a>."</p>
<pre><code class="hljs language-shell">> Enter passphrase (empty for no passphrase): <em>[Type a passphrase]</em>
> Enter same passphrase again: <em>[Type passphrase again]</em></code></pre>
</li>
</ol>
<h2 id="adding-your-ssh-key-to-the-ssh-agent"><a aria-hidden="" tabindex="-1" class="doctocat-link" href="#adding-your-ssh-key-to-the-ssh-agent"><svg aria-hidden="" role="img" class="octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Adding your SSH key to the ssh-agent</h2>
<p>Before adding a new SSH key to the ssh-agent to manage your keys, you should have checked for existing SSH keys and generated a new SSH key. <span class="platform-mac">When adding your SSH key to the agent, use the default macOS <code>ssh-add</code> command, and not an application installed by <a href="https://www.macports.org/">macports</a>, <a href="http://brew.sh/">homebrew</a>, or some other external source.</span></p>
<div class="extended-markdown mac">
<ol>
<li>
<p>Start the ssh-agent in the background. </p>
<pre><code class="hljs language-shell">$ eval "$(ssh-agent -s)"
> Agent pid 59566</code></pre>
<p>Depending on your environment, you may need to use a different command. For example, you may need to use root access by running <code>sudo -s -H</code> before starting the ssh-agent, or you may need to use <code>exec ssh-agent bash</code> or <code>exec ssh-agent zsh</code> to run the ssh-agent.</p>
</li>
<li>
<p>If you're using macOS Sierra 10.12.2 or later, you will need to modify your <code>~/.ssh/config</code> file to automatically load keys into the ssh-agent and store passphrases in your keychain.</p>
<ul>
<li>
<p>First, check to see if your <code>~/.ssh/config</code> file exists in the default location.</p>
<pre><code class="hljs language-shell">$ open ~/.ssh/config
> The file /Users/<em>you</em>/.ssh/config does not exist.</code></pre>
</li>
<li>
<p>If the file doesn't exist, create the file.</p>
<pre><code class="hljs language-shell">$ touch ~/.ssh/config</code></pre>
</li>
<li>
<p>Open your <code>~/.ssh/config</code> file, then modify the file to contain the following lines. If your SSH key file has a different name or path than the example code, modify the filename or path to match your current setup. </p>
<pre><code>Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
</code></pre>
<div class="extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5">
<p><strong>Note:</strong> If you chose not to add a passphrase to your key, you should omit the <code>UseKeychain</code> line.</p>
</div>
<div class="extended-markdown mac">
<div class="extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5">
<p> <strong>Note:</strong> If you see an error like this</p>
<pre><code>/Users/USER/.ssh/config: line 16: Bad configuration option: usekeychain
</code></pre>
<p> add an additional config line to your <code>Host *</code> section:</p>
<pre><code>Host *
IgnoreUnknown UseKeychain
</code></pre>
</div>
</div>
</li>
</ul>
</li>
<li>
<p>Add your SSH private key to the ssh-agent and store your passphrase in the keychain. If you created your key with a different name, or if you are adding an existing key that has a different name, replace <em>id_ed25519</em> in the command with the name of your private key file.</p>
<pre><code class="hljs language-shell">$ ssh-add -K ~/.ssh/id_ed25519</code></pre>
<div class="extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5">
<p><strong>Note:</strong> The <code>-K</code> option is Apple's standard version of <code>ssh-add</code>, which stores the passphrase in your keychain for you when you add an SSH key to the ssh-agent. If you chose not to add a passphrase to your key, run the command without the <code>-K</code> option. </p>
<p>If you don't have Apple's standard version installed, you may receive an error. For more information on resolving this error, see "<a href="/en/articles/error-ssh-add-illegal-option-k">Error: ssh-add: illegal option -- K</a>."</p>
</div>
</li>
<li>
<p>Add the SSH key to your account on GitHub. For more information, see "<a href="/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account">Adding a new SSH key to your GitHub account</a>."</p>
</li>
</ol>
</div>
<div class="extended-markdown windows">
<p>If you have <a href="https://desktop.github.com/">GitHub Desktop</a> installed, you can use it to clone repositories and not deal with SSH keys.</p>
<ol>
<li>
<p>Ensure the ssh-agent is running. You can use the "Auto-launching the ssh-agent" instructions in "<a href="/en/articles/working-with-ssh-key-passphrases">Working with SSH key passphrases</a>", or start it manually:</p>
<pre><code class="hljs language-shell"># start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
> Agent pid 59566</code></pre>
</li>
<li>
<p>Add your SSH private key to the ssh-agent. If you created your key with a different name, or if you are adding an existing key that has a different name, replace <em>id_ed25519</em> in the command with the name of your private key file.</p>
<pre><code class="hljs language-shell">$ ssh-add ~/.ssh/id_ed25519</code></pre>
</li>
<li>
<p>Add the SSH key to your account on GitHub. For more information, see "<a href="/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account">Adding a new SSH key to your GitHub account</a>."</p>
</li>
</ol>
</div>
<div class="extended-markdown linux">
<ol>
<li>
<p>Start the ssh-agent in the background. </p>
<pre><code class="hljs language-shell">$ eval "$(ssh-agent -s)"
> Agent pid 59566</code></pre>
<p>Depending on your environment, you may need to use a different command. For example, you may need to use root access by running <code>sudo -s -H</code> before starting the ssh-agent, or you may need to use <code>exec ssh-agent bash</code> or <code>exec ssh-agent zsh</code> to run the ssh-agent.</p>
</li>
<li>
<p>Add your SSH private key to the ssh-agent. If you created your key with a different name, or if you are adding an existing key that has a different name, replace <em>id_ed25519</em> in the command with the name of your private key file.</p>
<pre><code class="hljs language-shell">$ ssh-add ~/.ssh/id_ed25519</code></pre>
</li>
<li>
<p>Add the SSH key to your account on GitHub. For more information, see "<a href="/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account">Adding a new SSH key to your GitHub account</a>."</p>
</li>
</ol>
</div>
<h2 id="generating-a-new-ssh-key-for-a-hardware-security-key"><a aria-hidden="" tabindex="-1" class="doctocat-link" href="#generating-a-new-ssh-key-for-a-hardware-security-key"><svg aria-hidden="" role="img" class="octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Generating a new SSH key for a hardware security key</h2>
<p>If you are using macOS or Linux, you may need to update your SSH client or install a new SSH client prior to generating a new SSH key. For more information, see "<a href="/en/github/authenticating-to-github/error-unknown-key-type">Error: Unknown key type</a>."</p>
<ol>
<li>
<p>Insert your hardware security key into your computer.</p>
</li>
<li>
<p>Open <span class="platform-mac">Terminal</span><span class="platform-linux">Terminal</span><span class="platform-windows">Git Bash</span>.</p>
</li>
<li>
<p>Paste the text below, substituting in the email address for your account on GitHub.</p>
<pre><code class="hljs language-shell">$ ssh-keygen -t ed25519-sk -C "<em>[email protected]</em>"</code></pre>
<div class="extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5">
<p><strong>Note:</strong> If the command fails and you receive the error <code>invalid format</code> or <code>feature not supported,</code> you may be using a hardware security key that does not support the Ed25519 algorithm. Enter the following command instead.</p>
<pre><code class="hljs language-shell">$ ssh-keygen -t ecdsa-sk -C "[email protected]"</code></pre>
</div>
</li>
<li>
<p>When you are prompted, touch the button on your hardware security key.</p>
</li>
<li>
<p>When you are prompted to "Enter a file in which to save the key," press Enter to accept the default file location.</p>
<div class="extended-markdown mac">
<pre><code class="hljs language-shell">> Enter a file in which to save the key (/Users/<em>you</em>/.ssh/id_ed25519_sk): <em>[Press enter]</em></code></pre>
</div>
<div class="extended-markdown windows">
<pre><code class="hljs language-shell">> Enter a file in which to save the key (/c/Users/<em>you</em>/.ssh/id_ed25519_sk):<em>[Press enter]</em></code></pre>
</div>
<div class="extended-markdown linux">
<pre><code class="hljs language-shell">> Enter a file in which to save the key (/home/<em>you</em>/.ssh/id_ed25519_sk): <em>[Press enter]</em></code></pre>
</div>
</li>
<li>
<p>When you are prompted to type a passphrase, press <strong>Enter</strong>.</p>
<pre><code class="hljs language-shell">> Enter passphrase (empty for no passphrase): <em>[Type a passphrase]</em>
> Enter same passphrase again: <em>[Type passphrase again]</em></code></pre>
</li>
<li>
<p>Add the SSH key to your account on GitHub. For more information, see "<a href="/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account">Adding a new SSH key to your GitHub account</a>."</p>
</li>
</ol>
<h2 id="further-reading"><a aria-hidden="" tabindex="-1" class="doctocat-link" href="#further-reading"><svg aria-hidden="" role="img" class="octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Further reading</h2>
<ul>
<li>"<a href="/en/articles/about-ssh">About SSH</a>"</li>
<li>"<a href="/en/articles/working-with-ssh-key-passphrases">Working with SSH key passphrases</a>"</li>
<li>"<a href="/en/articles/authorizing-an-ssh-key-for-use-with-saml-single-sign-on">Authorizing an SSH key for use with SAML single sign-on</a>"</li>
</ul></div></div></div></div></div><section class="mt-lg-9 py-7 px-3 px-md-6 no-print color-bg-tertiary"><div class="container-xl gutter-lg-spacious clearfix"><div class="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left"><form class="f5 js-survey" data-testid="survey-form"><h2 class="mb-1 f4">Did this doc help you?<a rel="" class="f6 text-normal ml-3 color-text-link" target="_blank" href="/github/site-policy/github-privacy-statement">Privacy policy</a></h2><input type="text" class="d-none" name="survey-token" aria-hidden="true"/><p class="radio-group"><input type="radio" id="survey-yes" name="survey-vote" value="Y" aria-label="Yes" hidden=""/><label class="btn mr-1" for="survey-yes"><svg aria-hidden="true" role="img" class="color-text-tertiary" viewBox="0 0 24 24" width="24" height="24" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M12.596 2.043c-1.301-.092-2.303.986-2.303 2.206v1.053c0 2.666-1.813 3.785-2.774 4.2a1.866 1.866 0 01-.523.131A1.75 1.75 0 005.25 8h-1.5A1.75 1.75 0 002 9.75v10.5c0 .967.784 1.75 1.75 1.75h1.5a1.75 1.75 0 001.742-1.58c.838.06 1.667.296 2.69.586l.602.17c1.464.406 3.213.824 5.544.824 2.188 0 3.693-.204 4.583-1.372.422-.554.65-1.255.816-2.05.148-.708.262-1.57.396-2.58l.051-.39c.319-2.386.328-4.18-.223-5.394-.293-.644-.743-1.125-1.355-1.431-.59-.296-1.284-.404-2.036-.404h-2.05l.056-.429c.025-.18.05-.372.076-.572.06-.483.117-1.006.117-1.438 0-1.245-.222-2.253-.92-2.941-.684-.675-1.668-.88-2.743-.956zM7 18.918c1.059.064 2.079.355 3.118.652l.568.16c1.406.39 3.006.77 5.142.77 2.277 0 3.004-.274 3.39-.781.216-.283.388-.718.54-1.448.136-.65.242-1.45.379-2.477l.05-.384c.32-2.4.253-3.795-.102-4.575-.16-.352-.375-.568-.66-.711-.305-.153-.74-.245-1.365-.245h-2.37c-.681 0-1.293-.57-1.211-1.328.026-.243.065-.537.105-.834l.07-.527c.06-.482.105-.921.105-1.25 0-1.125-.213-1.617-.473-1.873-.275-.27-.774-.455-1.795-.528-.351-.024-.698.274-.698.71v1.053c0 3.55-2.488 5.063-3.68 5.577-.372.16-.754.232-1.113.26v7.78zM3.75 20.5a.25.25 0 01-.25-.25V9.75a.25.25 0 01.25-.25h1.5a.25.25 0 01.25.25v10.5a.25.25 0 01-.25.25h-1.5z"></path></svg></label><input type="radio" id="survey-no" name="survey-vote" value="N" aria-label="No" hidden=""/><label class="btn" for="survey-no"><svg aria-hidden="true" role="img" class="color-text-tertiary" viewBox="0 0 24 24" width="24" height="24" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M12.596 21.957c-1.301.092-2.303-.986-2.303-2.206v-1.053c0-2.666-1.813-3.785-2.774-4.2a1.864 1.864 0 00-.523-.13A1.75 1.75 0 015.25 16h-1.5A1.75 1.75 0 012 14.25V3.75C2 2.784 2.784 2 3.75 2h1.5a1.75 1.75 0 011.742 1.58c.838-.06 1.667-.296 2.69-.586l.602-.17C11.748 2.419 13.497 2 15.828 2c2.188 0 3.693.204 4.583 1.372.422.554.65 1.255.816 2.05.148.708.262 1.57.396 2.58l.051.39c.319 2.386.328 4.18-.223 5.394-.293.644-.743 1.125-1.355 1.431-.59.296-1.284.404-2.036.404h-2.05l.056.429c.025.18.05.372.076.572.06.483.117 1.006.117 1.438 0 1.245-.222 2.253-.92 2.942-.684.674-1.668.879-2.743.955zM7 5.082c1.059-.064 2.079-.355 3.118-.651.188-.054.377-.108.568-.16 1.406-.392 3.006-.771 5.142-.771 2.277 0 3.004.274 3.39.781.216.283.388.718.54 1.448.136.65.242 1.45.379 2.477l.05.385c.32 2.398.253 3.794-.102 4.574-.16.352-.375.569-.66.711-.305.153-.74.245-1.365.245h-2.37c-.681 0-1.293.57-1.211 1.328.026.244.065.537.105.834l.07.527c.06.482.105.922.105 1.25 0 1.125-.213 1.617-.473 1.873-.275.27-.774.456-1.795.528-.351.024-.698-.274-.698-.71v-1.053c0-3.55-2.488-5.063-3.68-5.577A3.485 3.485 0 007 12.861V5.08zM3.75 3.5a.25.25 0 00-.25.25v10.5c0 .138.112.25.25.25h1.5a.25.25 0 00.25-.25V3.75a.25.25 0 00-.25-.25h-1.5z"></path></svg></label></p></form></div><div class="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left"><div class="f5 contribution"><h2 class="f4">Help us make these docs great!</h2><p class="color-text-secondary f6">All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.</p><a class="btn btn-outline" href="https://github.com/github/docs/edit/main/content/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md"><svg aria-hidden="true" role="img" class="octicon mr-1" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M7.177 3.073L9.573.677A.25.25 0 0110 .854v4.792a.25.25 0 01-.427.177L7.177 3.427a.25.25 0 010-.354zM3.75 2.5a.75.75 0 100 1.5.75.75 0 000-1.5zm-2.25.75a2.25 2.25 0 113 2.122v5.256a2.251 2.251 0 11-1.5 0V5.372A2.25 2.25 0 011.5 3.25zM11 2.5h-1V4h1a1 1 0 011 1v5.628a2.251 2.251 0 101.5 0V5A2.5 2.5 0 0011 2.5zm1 10.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.75 12a.75.75 0 100 1.5.75.75 0 000-1.5z"></path></svg>Make a contribution</a><p class="color-text-secondary f6 mt-2">Or,<!-- --> <a href="https://github.com/github/docs/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener">learn how to contribute.</a></p></div></div><div class="col-12 col-lg-12 col-xl-4 float-left"><div><h3 class="mb-2 f4">Still need help?</h3><a id="ask-community" href="https://github.community/" class="btn btn-outline mr-4 mt-2"><svg aria-hidden="true" role="img" class="octicon mr-1" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M5.5 3.5a2 2 0 100 4 2 2 0 000-4zM2 5.5a3.5 3.5 0 115.898 2.549 5.507 5.507 0 013.034 4.084.75.75 0 11-1.482.235 4.001 4.001 0 00-7.9 0 .75.75 0 01-1.482-.236A5.507 5.507 0 013.102 8.05 3.49 3.49 0 012 5.5zM11 4a.75.75 0 100 1.5 1.5 1.5 0 01.666 2.844.75.75 0 00-.416.672v.352a.75.75 0 00.574.73c1.2.289 2.162 1.2 2.522 2.372a.75.75 0 101.434-.44 5.01 5.01 0 00-2.56-3.012A3 3 0 0011 4z"></path></svg>Ask the GitHub community</a><a id="contact-us" href="https://support.github.com/contact" class="btn btn-outline mt-2"><svg aria-hidden="true" role="img" class="octicon mr-1" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M1.5 2.75a.25.25 0 01.25-.25h8.5a.25.25 0 01.25.25v5.5a.25.25 0 01-.25.25h-3.5a.75.75 0 00-.53.22L3.5 11.44V9.25a.75.75 0 00-.75-.75h-1a.25.25 0 01-.25-.25v-5.5zM1.75 1A1.75 1.75 0 000 2.75v5.5C0 9.216.784 10 1.75 10H2v1.543a1.457 1.457 0 002.487 1.03L7.061 10h3.189A1.75 1.75 0 0012 8.25v-5.5A1.75 1.75 0 0010.25 1h-8.5zM14.5 4.75a.25.25 0 00-.25-.25h-.5a.75.75 0 110-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0114.25 12H14v1.543a1.457 1.457 0 01-2.487 1.03L9.22 12.28a.75.75 0 111.06-1.06l2.22 2.22v-2.19a.75.75 0 01.75-.75h1a.25.25 0 00.25-.25v-5.5z"></path></svg>Contact support</a></div></div></div></section><footer class="py-6 text-small"><div class="container-xl d-flex px-3 px-md-6"><ul class="d-flex list-style-none flex-wrap flex-justify-center flex-xl-justify-start"><li class="d-flex mr-xl-3 color-text-secondary"><svg aria-hidden="true" role="img" class="mr-2 mr-xl-3" viewBox="0 0 16 16" width="20" height="20" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg><span>© <!-- -->2021<!-- --> GitHub, Inc.</span></li><li class="ml-3"><a href="/github/site-policy/github-terms-of-service">Terms</a></li><li class="ml-3"><a href="/github/site-policy/github-privacy-statement">Privacy<!-- --> </a></li><li class="ml-3"><a href="https://github.com/security">Security</a></li><li class="ml-3"><a href="https://www.githubstatus.com/">Status</a></li><li class="ml-3"><a href="/">Help</a></li><li class="ml-3"><a href="https://support.github.com">Contact GitHub</a></li><li class="ml-3"><a href="https://github.com/pricing">Pricing</a></li><li class="ml-3"><a href="/developers">Developer API</a></li><li class="ml-3"><a href="https://services.github.com/">Training</a></li><li class="ml-3"><a href="https://github.com/about">About</a></li></ul></div></footer><div class="position-fixed bottom-0 mb-3 right-0 mr-3 transition-200 opacity-0"><button class="tooltipped tooltipped-n tooltipped-no-delay color-bg-info-inverse color-text-inverse circle border-0" style="width:40px;height:40px" aria-label="Scroll to top"><svg aria-hidden="true" role="img" class="octicon octicon-chevron-up" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path fill-rule="evenodd" d="M3.22 9.78a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 0l4.25 4.25a.75.75 0 01-1.06 1.06L8 6.06 4.28 9.78a.75.75 0 01-1.06 0z"></path></svg></button></div></main></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"mainContext":{"breadcrumbs":[{"documentType":"product","href":"/en/authentication","title":"Authentication"},{"documentType":"category","href":"/en/authentication/connecting-to-github-with-ssh","title":"Connect with SSH"},{"documentType":"article","href":"/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","title":"Generate new SSH key"}],"activeProducts":[{"id":"get-started","name":"Get started","href":"/get-started","dir":"content/get-started","toc":"content/get-started/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"account-and-profile","name":"Account and profile","href":"/account-and-profile","dir":"content/account-and-profile","toc":"content/account-and-profile/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"authentication","name":"Authentication","href":"/authentication","dir":"content/authentication","toc":"content/authentication/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"repositories","name":"Repositories","href":"/repositories","dir":"content/repositories","toc":"content/repositories/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"github","name":"GitHub","href":"/github","dir":"content/github","toc":"content/github/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"admin","name":"Enterprise administrators","href":"/[email protected]/admin","dir":"content/admin","toc":"content/admin/index.md","wip":false,"hidden":false,"versions":["[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"billing","name":"Billing and payments","href":"/billing","dir":"content/billing","toc":"content/billing/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"organizations","name":"Organizations","href":"/organizations","dir":"content/organizations","toc":"content/organizations/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"code-security","name":"Code security","href":"/code-security","dir":"content/code-security","toc":"content/code-security/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"issues","name":"GitHub Issues","href":"/issues","dir":"content/issues","toc":"content/issues/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"actions","name":"GitHub Actions","href":"/actions","dir":"content/actions","toc":"content/actions/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"codespaces","name":"GitHub Codespaces","href":"/codespaces","dir":"content/codespaces","toc":"content/codespaces/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest"]},{"id":"packages","name":"GitHub Packages","href":"/packages","dir":"content/packages","toc":"content/packages/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"search-github","name":"Search on GitHub","href":"/search-github","dir":"content/search-github","toc":"content/search-github/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"developers","name":"Developers","href":"/developers","dir":"content/developers","toc":"content/developers/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"rest","name":"REST API","href":"/rest","dir":"content/rest","toc":"content/rest/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"graphql","name":"GraphQL API","href":"/graphql","dir":"content/graphql","toc":"content/graphql/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"github-cli","name":"GitHub CLI","href":"/github-cli","dir":"content/github-cli","toc":"content/github-cli/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"discussions","name":"GitHub Discussions","href":"/discussions","dir":"content/discussions","toc":"content/discussions/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest"]},{"id":"sponsors","name":"GitHub Sponsors","href":"/sponsors","dir":"content/sponsors","toc":"content/sponsors/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest"]},{"id":"communities","name":"Building communities","href":"/communities","dir":"content/communities","toc":"content/communities/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"pages","name":"GitHub Pages","href":"/pages","dir":"content/pages","toc":"content/pages/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},{"id":"education","name":"Education","href":"/education","dir":"content/education","toc":"content/education/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest"]},{"id":"desktop","name":"GitHub Desktop","href":"/desktop","dir":"content/desktop","toc":"content/desktop/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest"]},{"id":"atom","name":"Atom","href":"https://atom.io/docs","external":true},{"id":"electron","name":"Electron","href":"https://electronjs.org/docs","external":true},{"id":"codeql","name":"CodeQL","href":"https://codeql.github.com/docs","external":true}],"community_redirect":{},"currentProduct":{"id":"authentication","name":"Authentication","href":"/authentication","dir":"content/authentication","toc":"content/authentication/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","[email protected]","[email protected]","[email protected]","[email protected]","github-ae@latest"]},"currentLayoutName":"default","isHomepageVersion":false,"isFPT":true,"error":"","data":{"ui":{"header":{"github_docs":"GitHub Docs","contact":"Contact","notices":{"ghae_silent_launch":"GitHub AE is currently under limited release. Please \u003ca href=\"https://enterprise.github.com/contact\"\u003econtact our Sales Team\u003c/a\u003e to find out more.","release_candidate":" is currently available as a release candidate. For more information, see \"\u003ca href=\"/admin/overview/about-upgrades-to-new-releases\"\u003eAbout upgrades to new releases\u003c/a\u003e.\"","localization_complete":"We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the \u003ca id=\"to-english-doc\" href=\"/en\"\u003eEnglish documentation\u003c/a\u003e. If there's a problem with translations on this page, please \u003ca href=\"https://github.com/contact?form[subject]=translation%20issue%20on%20docs.github.com\u0026form[comments]=\"\u003elet us know\u003c/a\u003e.","localization_in_progress":"Hello, explorer! This page is under active development or still in translation. For the most up-to-date and accurate information, please visit our \u003ca id=\"to-english-doc\" href=\"/en\"\u003eEnglish documentation\u003c/a\u003e.","early_access":"📣 Please \u003cb\u003edo not share\u003c/b\u003e this URL publicly. This page contains content about an early access feature.","release_notes_use_latest":"Please use the latest release for the latest security, performance, and bug fixes.","ghes_release_notes_upgrade_patch_only":"📣 This is not the \u003ca href=\"#{{ latestPatch }}\"\u003elatest patch release\u003c/a\u003e of Enterprise Server.","ghes_release_notes_upgrade_release_only":"📣 This is not the \u003ca href=\"/enterprise-server@{{ latestRelease }}/admin/release-notes\"\u003elatest release\u003c/a\u003e of Enterprise Server.","ghes_release_notes_upgrade_patch_and_release":"📣 This is not the \u003ca href=\"#{{ latestPatch }}\"\u003elatest patch release\u003c/a\u003e of this release series, and this is not the \u003ca href=\"/enterprise-server@{{ latestRelease }}/admin/release-notes\"\u003elatest release\u003c/a\u003e of Enterprise Server."}},"release_notes":{"banner_text_current":"These changes will roll out over the next one week.","banner_text_past":"These changes rolled out to enterprises during the week of"},"search":{"need_help":"Need help?","placeholder":"Search topics, products...","loading":"Loading","no_results":"No results found"},"homepage":{"explore_by_product":"Explore by product","version_picker":"Version"},"toc":{"getting_started":"Getting started","popular":"Popular","guides":"Guides","whats_new":"What's new"},"pages":{"article_version":"Article version:","miniToc":"In this article","contributor_callout":"This article is contributed and maintained by"},"errors":{"oops":"Ooops!","something_went_wrong":"It looks like something went wrong.","we_track_errors":"We track these errors automatically, but if the problem persists please feel free to contact us.","page_doesnt_exist":"It looks like this page doesn't exist."},"support":{"still_need_help":"Still need help?","contact_support":"Contact support","ask_community":"Ask the GitHub community"},"survey":{"able_to_find":"Did this doc help you?","yes":"Yes","no":"No","comment_yes_label":"Let us know what we do well","comment_no_label":"Let us know what we can do better","optional":"Optional","required":"Required","email_placeholder":"[email protected]","email_label":"Can we contact you if we have more questions?","send":"Send","feedback":"Thank you! We received your feedback.","not_support":"If you need a reply, please contact support instead.","privacy_policy":"Privacy policy"},"contribution_cta":{"title":"Help us make these docs great!","body":"All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.","button":"Make a contribution","or":"Or,","to_guidelines":"learn how to contribute."},"products":{"graphql":{"reference":{"fields":"Fields","arguments":"Arguments","name":"Name","type":"Type","description":"Description","input_fields":"Input fields","return_fields":"Return fields","implemented_by":"Implemented by","values":"Values","possible_types":"Possible types","preview_notice":"Preview notice","deprecation_notice":"Deprecation notice"}},"rest":{"reference":{"parameters":"Parameters","response":"Response","code_sample":"Code sample","code_samples":"Code samples","preview_notice":"Preview notice","preview_notices":"Preview notices","see_preview_notice":"See preview notice","see_preview_notices":"See preview notices","preview_header_is_required":"This header is \u003cstrong\u003erequired\u003c/strong\u003e"}}},"footer":{"all_rights_reserved":"All rights reserved","terms":"Terms","privacy":"Privacy","security":"Security","product":{"heading":"Product","links":{"features":"Features","security":"Security","enterprise":"Enterprise","case_studies":"Case Studies","pricing":"Pricing","resources":"Resources"}},"platform":{"heading":"Platform","links":{"developer_api":"Developer API","partners":"Partners","atom":"Atom","electron":"Electron","github_desktop":"GitHub Desktop"}},"support":{"heading":"Support","links":{"help":"Help","community_forum":"Community Forum","training":"Training","status":"Status","contact_github":"Contact GitHub"}},"company":{"heading":"Company","links":{"about":"About","blog":"Blog","careers":"Careers","press":"Press","shop":"Shop"}}},"product_landing":{"quickstart":"Quickstart","reference":"Reference","overview":"Overview","guides":"Guides","code_examples":"Code examples","search_code_examples":"Search code examples","show_more":"Show more","explore_people_and_projects":"Explore people and projects","sorry":"Sorry, there is no result for","no_example":"It looks like we don't have an example that fits your filter.","try_another":"Try another filter or add your code example.","no_result":"Sorry, there are no guides that match your filter.","learn":"Learn how to add a code example","communities_using_discussions":"Communities using discussions","add_your_community":"Add your community","sponsor_community":"GitHub Sponsors community","supported_releases":"Supported releases","release_notes_for":"Release notes for","upgrade_from":"Upgrade from","browse_all_docs":"Browse all docs","explore_release_notes":"Explore release notes"},"product_sublanding":{"start":"Start","start_path":"Start path","learning_paths":"{{ productMap[currentProduct].name }} learning paths","learning_paths_desc":"Learning paths are a collection of guides that help you master a particular subject.","guides":"{{ productMap[currentProduct].name }} guides","more_guides":"more guides","no_result":"Sorry, there are no guides that match your filter.","load_more":"Load more guides","all_guides":"All {{ productMap[currentProduct].name }} guides","filters":{"type":"Type","topic":"Topic","all":"All"},"guide_types":{"overview":"Overview","quick_start":"Quickstart","tutorial":"Tutorial","how_to":"How-to guide","reference":"Reference"}},"learning_track_nav":{"prevGuide":"Previous guide","nextGuide":"Next guide"},"toggle_images":{"off":"Images are off, click to show","on":"Images are on, click to hide","hide_single":"Hide image","show_single":"Show image"},"scroll_button":{"scroll_to_top":"Scroll to top"}},"reusables":{"enterprise_deprecation":{"deprecation_details":"No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, \u003ca href=\"/enterprise/admin/guides/installation/upgrading-github-enterprise/\"\u003eupgrade to the latest version of GitHub Enterprise\u003c/a\u003e.\nFor help with the upgrade, \u003ca href=\"https://enterprise.github.com/support\"\u003econtact GitHub Enterprise support\u003c/a\u003e.","version_was_deprecated":"This version of GitHub Enterprise was discontinued on","version_will_be_deprecated":"This version of GitHub Enterprise will be discontinued on"},"policies":{"abuse":"{% data variables.product.prodname_dotcom %} does not tolerate abuse.{% ifversion fpt %} For more information on {% data variables.product.prodname_dotcom %}'s policies, see our [Terms of Service](/articles/github-terms-of-service) and [Community Guidelines](/articles/github-community-guidelines).{% endif %}","github-community-guidelines-and-terms":"{% data variables.product.company_short %} provides a baseline code of conduct for everyone who uses {% data variables.product.prodname_dotcom_the_website %}. For more information, see \"[{% data variables.product.company_short %} Terms of Service](/github/site-policy/github-terms-of-service)\" and \"[{% data variables.product.company_short %} Community Guidelines](/github/site-policy/github-community-guidelines).\"","translation":"This document is translated from English. In the event of any conflict, uncertainty, or apparent inconsistency between this version and the English version(s) of this document, the English version is the controlling version.\n\nIf you have suggestions to improve our translation, please \u003ca href=\"https://github.com/github/site-policy/issues\"\u003eopen an issue in our site-policy repository\u003c/a\u003e."}},"variables":{"release_candidate":{"version":""}}},"airGap":false,"currentCategory":"connecting-to-github-with-ssh","currentPathWithoutLanguage":"/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","relativePath":"authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md","page":{"languageVariants":[{"name":"English","code":"en","hreflang":"en","href":"/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"},{"name":"Simplified Chinese","code":"cn","hreflang":"zh-Hans","href":"/cn/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"},{"name":"Japanese","code":"ja","hreflang":"ja","href":"/ja/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"},{"name":"Spanish","code":"es","hreflang":"es","href":"/es/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"},{"name":"Portuguese","code":"pt","hreflang":"pt","href":"/pt/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"},{"name":"German","code":"de","hreflang":"de","href":"/de/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"}],"documentType":"article","type":null,"title":"Generating a new SSH key and adding it to the ssh-agent","fullTitle":"Generating a new SSH key and adding it to the ssh-agent - GitHub Docs","topics":["SSH"],"introPlainText":"After you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent.","permalinks":[{"title":"Generating a new SSH key and adding it to the ssh-agent","pageVersionTitle":"GitHub.com","pageVersion":"free-pro-team@latest","href":"/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","relativePath":"authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md","languageCode":"en"},{"title":"Generating a new SSH key and adding it to the ssh-agent","pageVersionTitle":"Enterprise Server 3.2","pageVersion":"[email protected]","href":"/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","relativePath":"authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md","languageCode":"en"},{"title":"Generating a new SSH key and adding it to the ssh-agent","pageVersionTitle":"Enterprise Server 3.1","pageVersion":"[email protected]","href":"/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","relativePath":"authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md","languageCode":"en"},{"title":"Generating a new SSH key and adding it to the ssh-agent","pageVersionTitle":"Enterprise Server 3.0","pageVersion":"[email protected]","href":"/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","relativePath":"authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md","languageCode":"en"},{"title":"Generating a new SSH key and adding it to the ssh-agent","pageVersionTitle":"Enterprise Server 2.22","pageVersion":"[email protected]","href":"/en/[email protected]/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","relativePath":"authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md","languageCode":"en"},{"title":"Generating a new SSH key and adding it to the ssh-agent","pageVersionTitle":"GitHub AE","pageVersion":"github-ae@latest","href":"/en/github-ae@latest/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","relativePath":"authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent.md","languageCode":"en"}],"hidden":false},"enterpriseServerReleases":{"isOldestReleaseDeprecated":true,"oldestSupported":"2.22","nextDeprecationDate":"2021-09-23","supported":["3.2","3.1","3.0","2.22"]},"enterpriseServerVersions":["[email protected]","[email protected]","[email protected]","[email protected]"],"userLanguage":"ar","allVersions":{"free-pro-team@latest":{"version":"free-pro-team@latest","versionTitle":"GitHub.com","latestVersion":"free-pro-team@latest","currentRelease":"latest","openApiVersionName":"api.github.com","miscVersionName":"dotcom","plan":"free-pro-team","planTitle":"GitHub.com","shortName":"fpt","releases":["latest"],"latestRelease":"latest","nonEnterpriseDefault":true,"openApiBaseName":"api.github.com","miscBaseName":"dotcom"},"[email protected]":{"version":"[email protected]","versionTitle":"Enterprise Server 3.2","latestVersion":"[email protected]","currentRelease":"3.2","openApiVersionName":"ghes-3.2","miscVersionName":"ghes-3.2","plan":"enterprise-server","planTitle":"Enterprise Server","shortName":"ghes","releases":["3.2","3.1","3.0","2.22"],"latestRelease":"3.2","hasNumberedReleases":true,"openApiBaseName":"ghes-","miscBaseName":"ghes-"},"[email protected]":{"version":"[email protected]","versionTitle":"Enterprise Server 3.1","latestVersion":"[email protected]","currentRelease":"3.1","openApiVersionName":"ghes-3.1","miscVersionName":"ghes-3.1","plan":"enterprise-server","planTitle":"Enterprise Server","shortName":"ghes","releases":["3.2","3.1","3.0","2.22"],"latestRelease":"3.2","hasNumberedReleases":true,"openApiBaseName":"ghes-","miscBaseName":"ghes-"},"[email protected]":{"version":"[email protected]","versionTitle":"Enterprise Server 3.0","latestVersion":"[email protected]","currentRelease":"3.0","openApiVersionName":"ghes-3.0","miscVersionName":"ghes-3.0","plan":"enterprise-server","planTitle":"Enterprise Server","shortName":"ghes","releases":["3.2","3.1","3.0","2.22"],"latestRelease":"3.2","hasNumberedReleases":true,"openApiBaseName":"ghes-","miscBaseName":"ghes-"},"[email protected]":{"version":"[email protected]","versionTitle":"Enterprise Server 2.22","latestVersion":"[email protected]","currentRelease":"2.22","openApiVersionName":"ghes-2.22","miscVersionName":"ghes-2.22","plan":"enterprise-server","planTitle":"Enterprise Server","shortName":"ghes","releases":["3.2","3.1","3.0","2.22"],"latestRelease":"3.2","hasNumberedReleases":true,"openApiBaseName":"ghes-","miscBaseName":"ghes-"},"github-ae@latest":{"version":"github-ae@latest","versionTitle":"GitHub AE","latestVersion":"github-ae@latest","currentRelease":"latest","openApiVersionName":"github.ae","miscVersionName":"ghae","plan":"github-ae","planTitle":"GitHub AE","shortName":"ghae","releases":["latest"],"latestRelease":"latest","openApiBaseName":"github.ae","miscBaseName":"ghae"}},"currentVersion":"free-pro-team@latest","currentProductTree":{"href":"/en/authentication","renderedShortTitle":"","renderedFullTitle":"Authentication","page":{"hidden":false,"documentType":"product","title":"Authentication","shortTitle":""},"childPages":[{"href":"/en/authentication/keeping-your-account-and-data-secure","renderedShortTitle":"Account security","renderedFullTitle":"Keeping your account and data secure","page":{"hidden":false,"documentType":"category","title":"Keeping your account and data secure","shortTitle":"Account security"},"childPages":[{"href":"/en/authentication/keeping-your-account-and-data-secure/about-authentication-to-github","renderedShortTitle":"Authentication to GitHub","renderedFullTitle":"About authentication to GitHub","page":{"hidden":false,"documentType":"article","title":"About authentication to GitHub","shortTitle":"Authentication to GitHub"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/creating-a-strong-password","renderedShortTitle":"Create a strong password","renderedFullTitle":"Creating a strong password","page":{"hidden":false,"documentType":"article","title":"Creating a strong password","shortTitle":"Create a strong password"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/updating-your-github-access-credentials","renderedShortTitle":"Update access credentials","renderedFullTitle":"Updating your GitHub access credentials","page":{"hidden":false,"documentType":"article","title":"Updating your GitHub access credentials","shortTitle":"Update access credentials"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token","renderedShortTitle":"Create a PAT","renderedFullTitle":"Creating a personal access token","page":{"hidden":false,"documentType":"article","title":"Creating a personal access token","shortTitle":"Create a PAT"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-ssh-keys","renderedShortTitle":"","renderedFullTitle":"Reviewing your SSH keys","page":{"hidden":false,"documentType":"article","title":"Reviewing your SSH keys","shortTitle":""},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-deploy-keys","renderedShortTitle":"Deploy keys","renderedFullTitle":"Reviewing your deploy keys","page":{"hidden":false,"documentType":"article","title":"Reviewing your deploy keys","shortTitle":"Deploy keys"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/authorizing-oauth-apps","renderedShortTitle":"","renderedFullTitle":"Authorizing OAuth Apps","page":{"hidden":false,"documentType":"article","title":"Authorizing OAuth Apps","shortTitle":""},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/authorizing-github-apps","renderedShortTitle":"","renderedFullTitle":"Authorizing GitHub Apps","page":{"hidden":false,"documentType":"article","title":"Authorizing GitHub Apps","shortTitle":""},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-integrations","renderedShortTitle":"Authorized integrations","renderedFullTitle":"Reviewing your authorized integrations","page":{"hidden":false,"documentType":"article","title":"Reviewing your authorized integrations","shortTitle":"Authorized integrations"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/connecting-with-third-party-applications","renderedShortTitle":"Third-party applications","renderedFullTitle":"Connecting with third-party applications","page":{"hidden":false,"documentType":"article","title":"Connecting with third-party applications","shortTitle":"Third-party applications"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-authorized-applications-oauth","renderedShortTitle":"Review OAuth apps","renderedFullTitle":"Reviewing your authorized applications (OAuth)","page":{"hidden":false,"documentType":"article","title":"Reviewing your authorized applications (OAuth)","shortTitle":"Review OAuth apps"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation","renderedShortTitle":"Token expiration","renderedFullTitle":"Token expiration and revocation","page":{"hidden":false,"documentType":"article","title":"Token expiration and revocation","shortTitle":"Token expiration"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log","renderedShortTitle":"Security log","renderedFullTitle":"Reviewing your security log","page":{"hidden":false,"documentType":"article","title":"Reviewing your security log","shortTitle":"Security log"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository","renderedShortTitle":"Remove sensitive data","renderedFullTitle":"Removing sensitive data from a repository","page":{"hidden":false,"documentType":"article","title":"Removing sensitive data from a repository","shortTitle":"Remove sensitive data"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls","renderedShortTitle":"","renderedFullTitle":"About anonymized URLs","page":{"hidden":false,"documentType":"article","title":"About anonymized URLs","shortTitle":""},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses","renderedShortTitle":"GitHub's IP addresses","renderedFullTitle":"About GitHub's IP addresses","page":{"hidden":false,"documentType":"article","title":"About GitHub's IP addresses","shortTitle":"GitHub's IP addresses"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints","renderedShortTitle":"SSH key fingerprints","renderedFullTitle":"GitHub's SSH key fingerprints","page":{"hidden":false,"documentType":"article","title":"GitHub\u0026apos;s SSH key fingerprints","shortTitle":"SSH key fingerprints"},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/sudo-mode","renderedShortTitle":"","renderedFullTitle":"Sudo mode","page":{"hidden":false,"documentType":"article","title":"Sudo mode","shortTitle":""},"childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/preventing-unauthorized-access","renderedShortTitle":"Unauthorized access","renderedFullTitle":"Preventing unauthorized access","page":{"hidden":false,"documentType":"article","title":"Preventing unauthorized access","shortTitle":"Unauthorized access"},"childPages":[]}]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa","renderedShortTitle":"Secure your account with 2FA","renderedFullTitle":"Securing your account with two-factor authentication (2FA)","page":{"hidden":false,"documentType":"category","title":"Securing your account with two-factor authentication (2FA)","shortTitle":"Secure your account with 2FA"},"childPages":[{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/about-two-factor-authentication","renderedShortTitle":"About 2FA","renderedFullTitle":"About two-factor authentication","page":{"hidden":false,"documentType":"article","title":"About two-factor authentication","shortTitle":"About 2FA"},"childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication","renderedShortTitle":"Configure 2FA","renderedFullTitle":"Configuring two-factor authentication","page":{"hidden":false,"documentType":"article","title":"Configuring two-factor authentication","shortTitle":"Configure 2FA"},"childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods","renderedShortTitle":"Configure 2FA recovery","renderedFullTitle":"Configuring two-factor authentication recovery methods","page":{"hidden":false,"documentType":"article","title":"Configuring two-factor authentication recovery methods","shortTitle":"Configure 2FA recovery"},"childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/accessing-github-using-two-factor-authentication","renderedShortTitle":"Access GitHub with 2FA","renderedFullTitle":"Accessing GitHub using two-factor authentication","page":{"hidden":false,"documentType":"article","title":"Accessing GitHub using two-factor authentication","shortTitle":"Access GitHub with 2FA"},"childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials","renderedShortTitle":"Recover an account with 2FA","renderedFullTitle":"Recovering your account if you lose your 2FA credentials","page":{"hidden":false,"documentType":"article","title":"Recovering your account if you lose your 2FA credentials","shortTitle":"Recover an account with 2FA"},"childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-two-factor-authentication-delivery-methods-for-your-mobile-device","renderedShortTitle":"Change 2FA delivery method","renderedFullTitle":"Changing two-factor authentication delivery methods for your mobile device","page":{"hidden":false,"documentType":"article","title":"Changing two-factor authentication delivery methods for your mobile device","shortTitle":"Change 2FA delivery method"},"childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/countries-where-sms-authentication-is-supported","renderedShortTitle":"Countries supporting SMS","renderedFullTitle":"Countries where SMS authentication is supported","page":{"hidden":false,"documentType":"article","title":"Countries where SMS authentication is supported","shortTitle":"Countries supporting SMS"},"childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/disabling-two-factor-authentication-for-your-personal-account","renderedShortTitle":"Disable 2FA","renderedFullTitle":"Disabling two-factor authentication for your personal account","page":{"hidden":false,"documentType":"article","title":"Disabling two-factor authentication for your personal account","shortTitle":"Disable 2FA"},"childPages":[]}]},{"href":"/en/authentication/authenticating-with-saml-single-sign-on","renderedShortTitle":"Authenticate with SAML","renderedFullTitle":"Authenticating with SAML single sign-on","page":{"hidden":false,"documentType":"category","title":"Authenticating with SAML single sign-on","shortTitle":"Authenticate with SAML"},"childPages":[{"href":"/en/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on","renderedShortTitle":"SAML single sign-on","renderedFullTitle":"About authentication with SAML single sign-on","page":{"hidden":false,"documentType":"article","title":"About authentication with SAML single sign-on","shortTitle":"SAML single sign-on"},"childPages":[]},{"href":"/en/authentication/authenticating-with-saml-single-sign-on/authorizing-an-ssh-key-for-use-with-saml-single-sign-on","renderedShortTitle":"SSH Key with SAML","renderedFullTitle":"Authorizing an SSH key for use with SAML single sign-on","page":{"hidden":false,"documentType":"article","title":"Authorizing an SSH key for use with SAML single sign-on","shortTitle":"SSH Key with SAML"},"childPages":[]},{"href":"/en/authentication/authenticating-with-saml-single-sign-on/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on","renderedShortTitle":"PAT with SAML","renderedFullTitle":"Authorizing a personal access token for use with SAML single sign-on","page":{"hidden":false,"documentType":"article","title":"Authorizing a personal access token for use with SAML single sign-on","shortTitle":"PAT with SAML"},"childPages":[]},{"href":"/en/authentication/authenticating-with-saml-single-sign-on/viewing-and-managing-your-active-saml-sessions","renderedShortTitle":"Active SAML sessions","renderedFullTitle":"Viewing and managing your active SAML sessions","page":{"hidden":false,"documentType":"article","title":"Viewing and managing your active SAML sessions","shortTitle":"Active SAML sessions"},"childPages":[]}]},{"href":"/en/authentication/connecting-to-github-with-ssh","renderedShortTitle":"Connect with SSH","renderedFullTitle":"Connecting to GitHub with SSH","page":{"hidden":false,"documentType":"category","title":"Connecting to GitHub with SSH","shortTitle":"Connect with SSH"},"childPages":[{"href":"/en/authentication/connecting-to-github-with-ssh/about-ssh","renderedShortTitle":"","renderedFullTitle":"About SSH","page":{"hidden":false,"documentType":"article","title":"About SSH","shortTitle":""},"childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys","renderedShortTitle":"Check for existing SSH key","renderedFullTitle":"Checking for existing SSH keys","page":{"hidden":false,"documentType":"article","title":"Checking for existing SSH keys","shortTitle":"Check for existing SSH key"},"childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","renderedShortTitle":"Generate new SSH key","renderedFullTitle":"Generating a new SSH key and adding it to the ssh-agent","page":{"hidden":false,"documentType":"article","title":"Generating a new SSH key and adding it to the ssh-agent","shortTitle":"Generate new SSH key"},"childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account","renderedShortTitle":"Add a new SSH key","renderedFullTitle":"Adding a new SSH key to your GitHub account","page":{"hidden":false,"documentType":"article","title":"Adding a new SSH key to your GitHub account","shortTitle":"Add a new SSH key"},"childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection","renderedShortTitle":"Test your SSH connection","renderedFullTitle":"Testing your SSH connection","page":{"hidden":false,"documentType":"article","title":"Testing your SSH connection","shortTitle":"Test your SSH connection"},"childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases","renderedShortTitle":"SSH key passphrases","renderedFullTitle":"Working with SSH key passphrases","page":{"hidden":false,"documentType":"article","title":"Working with SSH key passphrases","shortTitle":"SSH key passphrases"},"childPages":[]}]},{"href":"/en/authentication/troubleshooting-ssh","renderedShortTitle":"","renderedFullTitle":"Troubleshooting SSH","page":{"hidden":false,"documentType":"category","title":"Troubleshooting SSH","shortTitle":""},"childPages":[{"href":"/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port","renderedShortTitle":"Use SSH over HTTPS port","renderedFullTitle":"Using SSH over the HTTPS port","page":{"hidden":false,"documentType":"article","title":"Using SSH over the HTTPS port","shortTitle":"Use SSH over HTTPS port"},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/recovering-your-ssh-key-passphrase","renderedShortTitle":"Recover SSH key passphrase","renderedFullTitle":"Recovering your SSH key passphrase","page":{"hidden":false,"documentType":"article","title":"Recovering your SSH key passphrase","shortTitle":"Recover SSH key passphrase"},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/deleted-or-missing-ssh-keys","renderedShortTitle":"Deleted or missing SSH keys","renderedFullTitle":"Deleted or missing SSH keys","page":{"hidden":false,"documentType":"article","title":"Deleted or missing SSH keys","shortTitle":"Deleted or missing SSH keys"},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-permission-denied-publickey","renderedShortTitle":"Permission denied (publickey)","renderedFullTitle":"Error: Permission denied (publickey)","page":{"hidden":false,"documentType":"article","title":"Error: Permission denied (publickey)","shortTitle":"Permission denied (publickey)"},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-bad-file-number","renderedShortTitle":"","renderedFullTitle":"Error: Bad file number","page":{"hidden":false,"documentType":"article","title":"Error: Bad file number","shortTitle":""},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-key-already-in-use","renderedShortTitle":"","renderedFullTitle":"Error: Key already in use","page":{"hidden":false,"documentType":"article","title":"Error: Key already in use","shortTitle":""},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-permission-to-userrepo-denied-to-other-user","renderedShortTitle":"Permission denied other-user","renderedFullTitle":"Error: Permission to user/repo denied to other-user","page":{"hidden":false,"documentType":"article","title":"Error: Permission to user/repo denied to other-user","shortTitle":"Permission denied other-user"},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-permission-to-userrepo-denied-to-userother-repo","renderedShortTitle":"Permission denied other-repo","renderedFullTitle":"Error: Permission to user/repo denied to user/other-repo","page":{"hidden":false,"documentType":"article","title":"Error: Permission to user/repo denied to user/other-repo","shortTitle":"Permission denied other-repo"},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-agent-admitted-failure-to-sign","renderedShortTitle":"Agent failure to sign","renderedFullTitle":"Error: Agent admitted failure to sign","page":{"hidden":false,"documentType":"article","title":"Error: Agent admitted failure to sign","shortTitle":"Agent failure to sign"},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-ssh-add-illegal-option----k","renderedShortTitle":"ssh-add: illegal option -- K","renderedFullTitle":"Error: ssh-add: illegal option -- K","page":{"hidden":false,"documentType":"article","title":"Error: ssh-add: illegal option -- K","shortTitle":"ssh-add: illegal option -- K"},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-ssl-certificate-problem-verify-that-the-ca-cert-is-ok","renderedShortTitle":"SSL certificate problem","renderedFullTitle":"Error: SSL certificate problem, verify that the CA cert is OK","page":{"hidden":false,"documentType":"article","title":"Error: SSL certificate problem, verify that the CA cert is OK","shortTitle":"SSL certificate problem"},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-unknown-key-type","renderedShortTitle":"","renderedFullTitle":"Error: Unknown key type","page":{"hidden":false,"documentType":"article","title":"Error: Unknown key type","shortTitle":""},"childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-were-doing-an-ssh-key-audit","renderedShortTitle":"SSH key audit","renderedFullTitle":"Error: We're doing an SSH key audit","page":{"hidden":false,"documentType":"article","title":"Error: We're doing an SSH key audit","shortTitle":"SSH key audit"},"childPages":[]}]},{"href":"/en/authentication/managing-commit-signature-verification","renderedShortTitle":"Verify commit signatures","renderedFullTitle":"Managing commit signature verification","page":{"hidden":false,"documentType":"category","title":"Managing commit signature verification","shortTitle":"Verify commit signatures"},"childPages":[{"href":"/en/authentication/managing-commit-signature-verification/about-commit-signature-verification","renderedShortTitle":"Commit signature verification","renderedFullTitle":"About commit signature verification","page":{"hidden":false,"documentType":"article","title":"About commit signature verification","shortTitle":"Commit signature verification"},"childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits","renderedShortTitle":"Displaying verification for all commits","renderedFullTitle":"Displaying verification statuses for all of your commits","page":{"hidden":false,"documentType":"article","title":"Displaying verification statuses for all of your commits","shortTitle":"Displaying verification for all commits"},"childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/checking-for-existing-gpg-keys","renderedShortTitle":"Existing GPG keys","renderedFullTitle":"Checking for existing GPG keys","page":{"hidden":false,"documentType":"article","title":"Checking for existing GPG keys","shortTitle":"Existing GPG keys"},"childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key","renderedShortTitle":"","renderedFullTitle":"Generating a new GPG key","page":{"hidden":false,"documentType":"article","title":"Generating a new GPG key","shortTitle":""},"childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account","renderedShortTitle":"Add a new GPG key","renderedFullTitle":"Adding a new GPG key to your GitHub account","page":{"hidden":false,"documentType":"article","title":"Adding a new GPG key to your GitHub account","shortTitle":"Add a new GPG key"},"childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key","renderedShortTitle":"Tell Git your signing key","renderedFullTitle":"Telling Git about your signing key","page":{"hidden":false,"documentType":"article","title":"Telling Git about your signing key","shortTitle":"Tell Git your signing key"},"childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/associating-an-email-with-your-gpg-key","renderedShortTitle":"Associate email with GPG key","renderedFullTitle":"Associating an email with your GPG key","page":{"hidden":false,"documentType":"article","title":"Associating an email with your GPG key","shortTitle":"Associate email with GPG key"},"childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/signing-commits","renderedShortTitle":"","renderedFullTitle":"Signing commits","page":{"hidden":false,"documentType":"article","title":"Signing commits","shortTitle":""},"childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/signing-tags","renderedShortTitle":"","renderedFullTitle":"Signing tags","page":{"hidden":false,"documentType":"article","title":"Signing tags","shortTitle":""},"childPages":[]}]},{"href":"/en/authentication/troubleshooting-commit-signature-verification","renderedShortTitle":"Troubleshoot verification","renderedFullTitle":"Troubleshooting commit signature verification","page":{"hidden":false,"documentType":"category","title":"Troubleshooting commit signature verification","shortTitle":"Troubleshoot verification"},"childPages":[{"href":"/en/authentication/troubleshooting-commit-signature-verification/checking-your-commit-and-tag-signature-verification-status","renderedShortTitle":"Check verification status","renderedFullTitle":"Checking your commit and tag signature verification status","page":{"hidden":false,"documentType":"article","title":"Checking your commit and tag signature verification status","shortTitle":"Check verification status"},"childPages":[]},{"href":"/en/authentication/troubleshooting-commit-signature-verification/updating-an-expired-gpg-key","renderedShortTitle":"Update expired GPG key","renderedFullTitle":"Updating an expired GPG key","page":{"hidden":false,"documentType":"article","title":"Updating an expired GPG key","shortTitle":"Update expired GPG key"},"childPages":[]},{"href":"/en/authentication/troubleshooting-commit-signature-verification/using-a-verified-email-address-in-your-gpg-key","renderedShortTitle":"Use verified email in GPG key","renderedFullTitle":"Using a verified email address in your GPG key","page":{"hidden":false,"documentType":"article","title":"Using a verified email address in your GPG key","shortTitle":"Use verified email in GPG key"},"childPages":[]}]}]},"featureFlags":{},"searchVersions":{"free-pro-team@latest":"dotcom","[email protected]":"3.2","[email protected]":"3.1","[email protected]":"3.0","[email protected]":"2.22","github-ae@latest":"ghae"},"nonEnterpriseDefaultVersion":"free-pro-team@latest","status":200,"fullUrl":"https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"},"productLandingContext":{"title":"Generating a new SSH key and adding it to the ssh-agent","shortTitle":"Generate new SSH key","introPlainText":"After you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent.","intro":"\u003cp\u003eAfter you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent.\u003c/p\u003e","product_video":"","hasGuidesPage":false,"product":{"href":"/en/authentication","title":"Authentication"},"whatsNewChangelog":[],"changelogUrl":[],"productCodeExamples":[],"productCommunityExamples":[],"releases":[],"productUserExamples":[],"introLinks":null,"featuredLinks":{},"tocItems":[],"featuredArticles":[]},"productSubLandingContext":{"intro":"\u003cp\u003eAfter you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent.\u003c/p\u003e","title":"Authentication","featuredTrack":null,"learningTracks":[],"includeGuides":[]},"tocLandingContext":{"title":"Generating a new SSH key and adding it to the ssh-agent","productCallout":"","introPlainText":"After you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent.","tocItems":[],"variant":"compact","featuredLinks":{},"renderedPage":"","currentLearningTrack":{}},"articleContext":{"title":"Generating a new SSH key and adding it to the ssh-agent","intro":"\u003cp\u003eAfter you've checked for existing SSH keys, you can generate a new SSH key to use for authentication, then add it to the ssh-agent.\u003c/p\u003e","renderedPage":"\u003ch2 id=\"about-ssh-key-generation\"\u003e\u003ca aria-hidden=\"\" tabindex=\"-1\" class=\"doctocat-link\" href=\"#about-ssh-key-generation\"\u003e\u003csvg aria-hidden=\"\" role=\"img\" class=\"octicon-link\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" style=\"display:inline-block;user-select:none;vertical-align:middle\"\u003e\u003cpath fill-rule=\"evenodd\" d=\"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003eAbout SSH key generation\u003c/h2\u003e\n\u003cp\u003eIf you don't already have an SSH key, you must generate a new SSH key to use for authentication. If you're unsure whether you already have an SSH key, you can check for existing keys. For more information, see \"\u003ca href=\"/en/github/authenticating-to-github/checking-for-existing-ssh-keys\"\u003eChecking for existing SSH keys\u003c/a\u003e.\"\u003c/p\u003e\n\u003cp\u003eIf you want to use a hardware security key to authenticate to GitHub, you must generate a new SSH key for your hardware security key. You must connect your hardware security key to your computer when you authenticate with the key pair. For more information, see the \u003ca href=\"https://www.openssh.com/txt/release-8.2\"\u003eOpenSSH 8.2 release notes\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eIf you don't want to reenter your passphrase every time you use your SSH key, you can add your key to the SSH agent, which manages your SSH keys and remembers your passphrase.\u003c/p\u003e\n\u003ch2 id=\"generating-a-new-ssh-key\"\u003e\u003ca aria-hidden=\"\" tabindex=\"-1\" class=\"doctocat-link\" href=\"#generating-a-new-ssh-key\"\u003e\u003csvg aria-hidden=\"\" role=\"img\" class=\"octicon-link\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" style=\"display:inline-block;user-select:none;vertical-align:middle\"\u003e\u003cpath fill-rule=\"evenodd\" d=\"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003eGenerating a new SSH key\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eOpen \u003cspan class=\"platform-mac\"\u003eTerminal\u003c/span\u003e\u003cspan class=\"platform-linux\"\u003eTerminal\u003c/span\u003e\u003cspan class=\"platform-windows\"\u003eGit Bash\u003c/span\u003e.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003ePaste the text below, substituting in your GitHub email address.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ ssh-keygen -t ed25519 -C \"\u003cem\[email protected]\u003c/em\u003e\"\u003c/code\u003e\u003c/pre\u003e\n\u003cdiv class=\"extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5\"\u003e\n\u003cp\u003e\u003cstrong\u003eNote:\u003c/strong\u003e If you are using a legacy system that doesn't support the Ed25519 algorithm, use:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ ssh-keygen -t rsa -b 4096 -C \"[email protected]\"\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e \nThis creates a new SSH key, using the provided email as a label.\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e\u003e Generating public/private ed25519 key pair.\u003c/code\u003e\u003c/pre\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eWhen you're prompted to \"Enter a file in which to save the key,\" press Enter. This accepts the default file location.\u003c/p\u003e\n\u003cdiv class=\"extended-markdown mac\"\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e\u003e Enter a file in which to save the key (/Users/\u003cem\u003eyou\u003c/em\u003e/.ssh/id_ed25519): \u003cem\u003e[Press enter]\u003c/em\u003e\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e\n\u003cdiv class=\"extended-markdown windows\"\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e\u003e Enter a file in which to save the key (/c/Users/\u003cem\u003eyou\u003c/em\u003e/.ssh/id_ed25519):\u003cem\u003e[Press enter]\u003c/em\u003e\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e\n\u003cdiv class=\"extended-markdown linux\"\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e\u003e Enter a file in which to save the key (/home/\u003cem\u003eyou\u003c/em\u003e/.ssh/id_ed25519): \u003cem\u003e[Press enter]\u003c/em\u003e\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAt the prompt, type a secure passphrase. For more information, see \u003ca href=\"/en/articles/working-with-ssh-key-passphrases\"\u003e\"Working with SSH key passphrases\u003c/a\u003e.\"\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e\u003e Enter passphrase (empty for no passphrase): \u003cem\u003e[Type a passphrase]\u003c/em\u003e\n\u003e Enter same passphrase again: \u003cem\u003e[Type passphrase again]\u003c/em\u003e\u003c/code\u003e\u003c/pre\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2 id=\"adding-your-ssh-key-to-the-ssh-agent\"\u003e\u003ca aria-hidden=\"\" tabindex=\"-1\" class=\"doctocat-link\" href=\"#adding-your-ssh-key-to-the-ssh-agent\"\u003e\u003csvg aria-hidden=\"\" role=\"img\" class=\"octicon-link\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" style=\"display:inline-block;user-select:none;vertical-align:middle\"\u003e\u003cpath fill-rule=\"evenodd\" d=\"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003eAdding your SSH key to the ssh-agent\u003c/h2\u003e\n\u003cp\u003eBefore adding a new SSH key to the ssh-agent to manage your keys, you should have checked for existing SSH keys and generated a new SSH key. \u003cspan class=\"platform-mac\"\u003eWhen adding your SSH key to the agent, use the default macOS \u003ccode\u003essh-add\u003c/code\u003e command, and not an application installed by \u003ca href=\"https://www.macports.org/\"\u003emacports\u003c/a\u003e, \u003ca href=\"http://brew.sh/\"\u003ehomebrew\u003c/a\u003e, or some other external source.\u003c/span\u003e\u003c/p\u003e\n\u003cdiv class=\"extended-markdown mac\"\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eStart the ssh-agent in the background. \u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ eval \"$(ssh-agent -s)\"\n\u003e Agent pid 59566\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eDepending on your environment, you may need to use a different command. For example, you may need to use root access by running \u003ccode\u003esudo -s -H\u003c/code\u003e before starting the ssh-agent, or you may need to use \u003ccode\u003eexec ssh-agent bash\u003c/code\u003e or \u003ccode\u003eexec ssh-agent zsh\u003c/code\u003e to run the ssh-agent.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eIf you're using macOS Sierra 10.12.2 or later, you will need to modify your \u003ccode\u003e~/.ssh/config\u003c/code\u003e file to automatically load keys into the ssh-agent and store passphrases in your keychain.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eFirst, check to see if your \u003ccode\u003e~/.ssh/config\u003c/code\u003e file exists in the default location.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ open ~/.ssh/config\n\u003e The file /Users/\u003cem\u003eyou\u003c/em\u003e/.ssh/config does not exist.\u003c/code\u003e\u003c/pre\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eIf the file doesn't exist, create the file.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ touch ~/.ssh/config\u003c/code\u003e\u003c/pre\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eOpen your \u003ccode\u003e~/.ssh/config\u003c/code\u003e file, then modify the file to contain the following lines. If your SSH key file has a different name or path than the example code, modify the filename or path to match your current setup. \u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003eHost *\n AddKeysToAgent yes\n UseKeychain yes\n IdentityFile ~/.ssh/id_ed25519\n\u003c/code\u003e\u003c/pre\u003e\n\u003cdiv class=\"extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5\"\u003e\n\u003cp\u003e\u003cstrong\u003eNote:\u003c/strong\u003e If you chose not to add a passphrase to your key, you should omit the \u003ccode\u003eUseKeychain\u003c/code\u003e line.\u003c/p\u003e\n\u003c/div\u003e\n \u003cdiv class=\"extended-markdown mac\"\u003e\n \u003cdiv class=\"extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5\"\u003e\n\u003cp\u003e \u003cstrong\u003eNote:\u003c/strong\u003e If you see an error like this\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e/Users/USER/.ssh/config: line 16: Bad configuration option: usekeychain\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003e add an additional config line to your \u003ccode\u003eHost *\u003c/code\u003e section:\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003eHost *\n IgnoreUnknown UseKeychain\n\u003c/code\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003c/div\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAdd your SSH private key to the ssh-agent and store your passphrase in the keychain. If you created your key with a different name, or if you are adding an existing key that has a different name, replace \u003cem\u003eid_ed25519\u003c/em\u003e in the command with the name of your private key file.\u003c/p\u003e\n \u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ ssh-add -K ~/.ssh/id_ed25519\u003c/code\u003e\u003c/pre\u003e\n\u003cdiv class=\"extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5\"\u003e\n\u003cp\u003e\u003cstrong\u003eNote:\u003c/strong\u003e The \u003ccode\u003e-K\u003c/code\u003e option is Apple's standard version of \u003ccode\u003essh-add\u003c/code\u003e, which stores the passphrase in your keychain for you when you add an SSH key to the ssh-agent. If you chose not to add a passphrase to your key, run the command without the \u003ccode\u003e-K\u003c/code\u003e option. \u003c/p\u003e\n\u003cp\u003eIf you don't have Apple's standard version installed, you may receive an error. For more information on resolving this error, see \"\u003ca href=\"/en/articles/error-ssh-add-illegal-option-k\"\u003eError: ssh-add: illegal option -- K\u003c/a\u003e.\"\u003c/p\u003e\n\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAdd the SSH key to your account on GitHub. For more information, see \"\u003ca href=\"/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account\"\u003eAdding a new SSH key to your GitHub account\u003c/a\u003e.\"\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/div\u003e\n\u003cdiv class=\"extended-markdown windows\"\u003e\n\u003cp\u003eIf you have \u003ca href=\"https://desktop.github.com/\"\u003eGitHub Desktop\u003c/a\u003e installed, you can use it to clone repositories and not deal with SSH keys.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eEnsure the ssh-agent is running. You can use the \"Auto-launching the ssh-agent\" instructions in \"\u003ca href=\"/en/articles/working-with-ssh-key-passphrases\"\u003eWorking with SSH key passphrases\u003c/a\u003e\", or start it manually:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e# start the ssh-agent in the background\n$ eval \"$(ssh-agent -s)\"\n\u003e Agent pid 59566\u003c/code\u003e\u003c/pre\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAdd your SSH private key to the ssh-agent. If you created your key with a different name, or if you are adding an existing key that has a different name, replace \u003cem\u003eid_ed25519\u003c/em\u003e in the command with the name of your private key file.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ ssh-add ~/.ssh/id_ed25519\u003c/code\u003e\u003c/pre\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAdd the SSH key to your account on GitHub. For more information, see \"\u003ca href=\"/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account\"\u003eAdding a new SSH key to your GitHub account\u003c/a\u003e.\"\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/div\u003e\n\u003cdiv class=\"extended-markdown linux\"\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eStart the ssh-agent in the background. \u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ eval \"$(ssh-agent -s)\"\n\u003e Agent pid 59566\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eDepending on your environment, you may need to use a different command. For example, you may need to use root access by running \u003ccode\u003esudo -s -H\u003c/code\u003e before starting the ssh-agent, or you may need to use \u003ccode\u003eexec ssh-agent bash\u003c/code\u003e or \u003ccode\u003eexec ssh-agent zsh\u003c/code\u003e to run the ssh-agent.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAdd your SSH private key to the ssh-agent. If you created your key with a different name, or if you are adding an existing key that has a different name, replace \u003cem\u003eid_ed25519\u003c/em\u003e in the command with the name of your private key file.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ ssh-add ~/.ssh/id_ed25519\u003c/code\u003e\u003c/pre\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAdd the SSH key to your account on GitHub. For more information, see \"\u003ca href=\"/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account\"\u003eAdding a new SSH key to your GitHub account\u003c/a\u003e.\"\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/div\u003e\n\u003ch2 id=\"generating-a-new-ssh-key-for-a-hardware-security-key\"\u003e\u003ca aria-hidden=\"\" tabindex=\"-1\" class=\"doctocat-link\" href=\"#generating-a-new-ssh-key-for-a-hardware-security-key\"\u003e\u003csvg aria-hidden=\"\" role=\"img\" class=\"octicon-link\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" style=\"display:inline-block;user-select:none;vertical-align:middle\"\u003e\u003cpath fill-rule=\"evenodd\" d=\"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003eGenerating a new SSH key for a hardware security key\u003c/h2\u003e\n\u003cp\u003eIf you are using macOS or Linux, you may need to update your SSH client or install a new SSH client prior to generating a new SSH key. For more information, see \"\u003ca href=\"/en/github/authenticating-to-github/error-unknown-key-type\"\u003eError: Unknown key type\u003c/a\u003e.\"\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eInsert your hardware security key into your computer.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eOpen \u003cspan class=\"platform-mac\"\u003eTerminal\u003c/span\u003e\u003cspan class=\"platform-linux\"\u003eTerminal\u003c/span\u003e\u003cspan class=\"platform-windows\"\u003eGit Bash\u003c/span\u003e.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003ePaste the text below, substituting in the email address for your account on GitHub.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ ssh-keygen -t ed25519-sk -C \"\u003cem\[email protected]\u003c/em\u003e\"\u003c/code\u003e\u003c/pre\u003e\n\u003cdiv class=\"extended-markdown note border rounded-1 mb-4 p-3 color-border-info color-bg-info f5\"\u003e\n\u003cp\u003e\u003cstrong\u003eNote:\u003c/strong\u003e If the command fails and you receive the error \u003ccode\u003einvalid format\u003c/code\u003e or \u003ccode\u003efeature not supported,\u003c/code\u003e you may be using a hardware security key that does not support the Ed25519 algorithm. Enter the following command instead.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e$ ssh-keygen -t ecdsa-sk -C \"[email protected]\"\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e \n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eWhen you are prompted, touch the button on your hardware security key.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eWhen you are prompted to \"Enter a file in which to save the key,\" press Enter to accept the default file location.\u003c/p\u003e\n\u003cdiv class=\"extended-markdown mac\"\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e\u003e Enter a file in which to save the key (/Users/\u003cem\u003eyou\u003c/em\u003e/.ssh/id_ed25519_sk): \u003cem\u003e[Press enter]\u003c/em\u003e\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e\n\u003cdiv class=\"extended-markdown windows\"\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e\u003e Enter a file in which to save the key (/c/Users/\u003cem\u003eyou\u003c/em\u003e/.ssh/id_ed25519_sk):\u003cem\u003e[Press enter]\u003c/em\u003e\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e\n\u003cdiv class=\"extended-markdown linux\"\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e\u003e Enter a file in which to save the key (/home/\u003cem\u003eyou\u003c/em\u003e/.ssh/id_ed25519_sk): \u003cem\u003e[Press enter]\u003c/em\u003e\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eWhen you are prompted to type a passphrase, press \u003cstrong\u003eEnter\u003c/strong\u003e.\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"hljs language-shell\"\u003e\u003e Enter passphrase (empty for no passphrase): \u003cem\u003e[Type a passphrase]\u003c/em\u003e\n\u003e Enter same passphrase again: \u003cem\u003e[Type passphrase again]\u003c/em\u003e\u003c/code\u003e\u003c/pre\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAdd the SSH key to your account on GitHub. For more information, see \"\u003ca href=\"/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account\"\u003eAdding a new SSH key to your GitHub account\u003c/a\u003e.\"\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2 id=\"further-reading\"\u003e\u003ca aria-hidden=\"\" tabindex=\"-1\" class=\"doctocat-link\" href=\"#further-reading\"\u003e\u003csvg aria-hidden=\"\" role=\"img\" class=\"octicon-link\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" style=\"display:inline-block;user-select:none;vertical-align:middle\"\u003e\u003cpath fill-rule=\"evenodd\" d=\"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003eFurther reading\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\"\u003ca href=\"/en/articles/about-ssh\"\u003eAbout SSH\u003c/a\u003e\"\u003c/li\u003e\n\u003cli\u003e\"\u003ca href=\"/en/articles/working-with-ssh-key-passphrases\"\u003eWorking with SSH key passphrases\u003c/a\u003e\"\u003c/li\u003e\n\u003cli\u003e\"\u003ca href=\"/en/articles/authorizing-an-ssh-key-for-use-with-saml-single-sign-on\"\u003eAuthorizing an SSH key for use with SAML single sign-on\u003c/a\u003e\"\u003c/li\u003e\n\u003c/ul\u003e","miniTocItems":[{"indentationLevel":0,"platform":"","contents":"\u003ca href=\"#about-ssh-key-generation\"\u003eAbout SSH key generation\u003c/a\u003e"},{"indentationLevel":0,"platform":"","contents":"\u003ca href=\"#generating-a-new-ssh-key\"\u003eGenerating a new SSH key\u003c/a\u003e"},{"indentationLevel":0,"platform":"","contents":"\u003ca href=\"#adding-your-ssh-key-to-the-ssh-agent\"\u003eAdding your SSH key to the ssh-agent\u003c/a\u003e"},{"indentationLevel":0,"platform":"","contents":"\u003ca href=\"#generating-a-new-ssh-key-for-a-hardware-security-key\"\u003eGenerating a new SSH key for a hardware security key\u003c/a\u003e"},{"indentationLevel":0,"platform":"","contents":"\u003ca href=\"#further-reading\"\u003eFurther reading\u003c/a\u003e"}],"contributor":null,"permissions":"","includesPlatformSpecificContent":true,"defaultPlatform":"","product":"","currentLearningTrack":{}}},"themeProps":{"colorMode":"auto","nightTheme":"dark","dayTheme":"light"},"csrfToken":"aROccI1S-SZpfSOcna7P23NBlCgq-tRcTCV8","languagesContext":{"languages":{"en":{"name":"English","code":"en","hreflang":"en","dir":"","wip":false},"cn":{"name":"Simplified Chinese","nativeName":"简体中文","code":"cn","hreflang":"zh-Hans","redirectPatterns":[{},{}],"dir":"translations/zh-CN","wip":false},"ja":{"name":"Japanese","nativeName":"日本語","code":"ja","hreflang":"ja","redirectPatterns":[{}],"dir":"translations/ja-JP","wip":false},"es":{"name":"Spanish","nativeName":"Español","code":"es","hreflang":"es","dir":"translations/es-XL","wip":false},"pt":{"name":"Portuguese","nativeName":"Português do Brasil","code":"pt","hreflang":"pt","dir":"translations/pt-BR","wip":false},"de":{"name":"German","nativeName":"Deutsch","code":"de","hreflang":"de","dir":"translations/de-DE","wip":true}}},"__N_SSP":true},"page":"/[versionId]/[productId]/[...restPage]","query":{"versionId":"free-pro-team@latest","productId":"authentication","restPage":["connecting-to-github-with-ssh","generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"]},"buildId":"edGgo7ZaGV6U16AUhDsto","isFallback":false,"gssp":true,"customServer":true,"appGip":true,"locale":"en","locales":["en","cn","ja","es","pt","de"],"defaultLocale":"en","scriptLoader":[]}</script></body></html>