-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -683,7 +683,7 @@ | |
|
||
</style></head><body><article id="f7ce90db-4e68-4db8-aa72-3918f09f4d4b" class="page sans"><header><img class="page-cover-image" src="https://www.notion.so/images/page-cover/solid_blue.png" style="object-position:center 40%"/><div class="page-header-icon page-header-icon-with-cover"><span class="icon">🔐</span></div><h1 class="page-title">Setup SSH in GitHub</h1><p class="page-description"></p></header><div class="page-body"><ul id="613b943b-2cb4-40fb-be0c-d82aea91f61d" class="bulleted-list"><li style="list-style-type:disc">This works for MCC or any secure shell (SSH), such as the Gemini system</li></ul><ul id="5f9c20a4-5b29-4f6b-8679-5dd1e7b7b8f5" class="bulleted-list"><li style="list-style-type:disc">The goal of this tutorial is to show how to use GitHub on a supercomputer and how to authenticate your GitHub account without a password</li></ul><h1 id="1d257f41-0336-4396-af25-7c6c3388622d" class="">Create Personal Access Token on GitHub</h1><p id="414323aa-71d5-4c19-b4ab-1496d0102648" class="">A personal access token is used in lieu of a password when cloning private repositories to your local machine or a server that runs with SSH.</p><p id="8a080ea3-982c-4953-a57c-5ca2157c11e5" class=""> | ||
</p><ol type="1" id="a27151f5-c49e-420c-8e59-eb5b21bde5aa" class="numbered-list" start="1"><li>On GitHub, navigate to <strong>username > Settings > Developer settings > Personal access tokens > Tokens (classic) > Generate new token</strong></li></ol><ol type="1" id="e413b95d-d3bf-47af-a408-02bf30d493fe" class="numbered-list" start="2"><li>Press <strong>New personal access token (classic)</strong></li></ol><ol type="1" id="155e8906-2018-481d-a97c-60ef7462800b" class="numbered-list" start="3"><li>Edit the note to reflect a descriptive title for what this is used for. For instance “github-user-login”</li></ol><ol type="1" id="ab226458-3a55-489a-be36-042e47b40f81" class="numbered-list" start="4"><li>Set an expiration date. This can be set to up to a year in the future.</li></ol><ol type="1" id="09a8f8d2-0660-4a87-a994-7691b32e89a2" class="numbered-list" start="5"><li>Select scopes (permissions) for what you can access with the personal access token. To be conservative select <strong>repo, write:packages, delete:packages, admin:public_key, read:user, write:discussion, project, and admin:ssh_signing_key</strong></li></ol><p id="3dd00b45-f0f4-462e-8c7d-15932117e926" class=""> | ||
</p><figure id="b9e7ac46-049e-4f42-b38e-a4267d11c57b" class="image"><a href="Setup%20SSH%20in%20GitHub%20f7ce90db4e684db8aa723918f09f4d4b/image.png"><img style="width:672px" src="Setup%20SSH%20in%20GitHub%20f7ce90db4e684db8aa723918f09f4d4b/image.png"/></a></figure><p id="29a048fc-2b28-4637-a077-58f40574e6fb" class=""> | ||
</p><figure id="b9e7ac46-049e-4f42-b38e-a4267d11c57b" class="image"><a href="Setup%20SSH%20in%20GitHub%20f7ce90db4e684db8aa723918f09f4d4b/image.png"><img style="width:672px" src="image.png"/></a></figure><p id="29a048fc-2b28-4637-a077-58f40574e6fb" class=""> | ||
</p><ol type="1" id="057db830-fa64-4727-af56-fd9d57212580" class="numbered-list" start="6"><li>Press <strong>Generate Token</strong></li></ol><ol type="1" id="cc5b1c78-2bb3-4ea0-b1eb-ddf7b19447bf" class="numbered-list" start="7"><li>Copy the token now (you will only be able to see it once) and store it in a safe location. <strong>Important: copy the personal access token now and save it in a secure location</strong></li></ol><ol type="1" id="ff515524-7daf-4fe9-ad7b-8112622d553f" class="numbered-list" start="8"><li>On the mcc, change your git config settings to match your GitHub settings. Check these changes with git config -l</li></ol><script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js" integrity="sha512-7Z9J3l1+EYfeaPKcGXu3MS/7T+w19WtKQY/n+xzmw4hZhJ9tyYmcUS+4QqAlzhicE5LAfMQSF3iFTK9bQdTxXg==" crossorigin="anonymous" referrerPolicy="no-referrer"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" integrity="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ==" crossorigin="anonymous" referrerPolicy="no-referrer"/><pre id="5388a88b-3f53-46b1-b8fd-5fa53ae0a762" class="code"><code class="language-Bash">git config --global user.name "your_github_username" | ||
git config --global user.email "your_github_email" | ||
git config -l</code></pre><h1 id="05270f59-5af8-4da0-bfc2-dc2ffab48206" class="">Create GitHub SSH Keys</h1><ol type="1" id="96778571-f5ff-4379-b444-629544f71823" class="numbered-list" start="9"><li>Login to mcc or other secure shell.</li></ol><script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js" integrity="sha512-7Z9J3l1+EYfeaPKcGXu3MS/7T+w19WtKQY/n+xzmw4hZhJ9tyYmcUS+4QqAlzhicE5LAfMQSF3iFTK9bQdTxXg==" crossorigin="anonymous" referrerPolicy="no-referrer"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" integrity="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ==" crossorigin="anonymous" referrerPolicy="no-referrer"/><pre id="ede2cd65-3411-49b6-99c9-9e8d98c97073" class="code"><code class="language-Bash">ssh [email protected] | ||
|