Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
student:utilities:start:keypairs:beginner [2024/10/09 09:41] – [Generating a Key Pair] akwasion | student:utilities:start:keypairs:beginner [2024/11/20 15:07] (current) – [Tell Github to join the party] stewarmc | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Getting Started with Authentication via Key-Pairs ===== | ===== Getting Started with Authentication via Key-Pairs ===== | ||
- | This documentation assumes you have never done anything with keypairs before (or at least that you have no recollection of having done so). | + | This documentation assumes you have **NEVER** |
- | Most of the sections of this document assume you have first followed the preceding sections (so you shoudl | + | Most of the sections of this document assume you have first followed the preceding sections (so you should |
==== Prerequisites ==== | ==== Prerequisites ==== | ||
Line 52: | Line 52: | ||
ServerAliveCountMax 120 | ServerAliveCountMax 120 | ||
AddKeysToAgent yes # https:// | AddKeysToAgent yes # https:// | ||
- | IdentitiesOnly yes | + | |
- | Host stu # by specifying the host here as " | + | Host stu # by specifying the host here as " |
+ | # | ||
HostName stu.cs.jmu.edu | HostName stu.cs.jmu.edu | ||
# next setting only necessary if you aren't using a default-named key like id_rsa or id_ed25519 | # next setting only necessary if you aren't using a default-named key like id_rsa or id_ed25519 | ||
# IdentityFile ~/ | # IdentityFile ~/ | ||
- | User YOUR_EID | + | User YOUR_EID_BUT_DONT_CAPITALIZE_IT |
+ | # user@ when connecting via ssh | ||
** NOTICE THE PART YOU HAVE TO REPLACE ABOVE, FOR MOST IT'S IN JUST THE LAST LINE WHERE IT SAYS " | ** NOTICE THE PART YOU HAVE TO REPLACE ABOVE, FOR MOST IT'S IN JUST THE LAST LINE WHERE IT SAYS " | ||
Line 63: | Line 65: | ||
==== Tell stu this is all legit ==== | ==== Tell stu this is all legit ==== | ||
- | - in your terminal (see prerequisite above for help opening the correct terminal for our purposes on your OS), enter '' | + | - in your terminal (see [[# |
- you may see a message like '' | - you may see a message like '' | ||
ED25519 key fingerprint is SHA256: | ED25519 key fingerprint is SHA256: | ||
This key is not known by any other names. | This key is not known by any other names. | ||
Are you sure you want to continue connecting (yes/ | Are you sure you want to continue connecting (yes/ | ||
- | - you will be prompted for your (JMU EID) password. Enter it. | + | - you will be prompted for your (JMU EID) password. Enter it. **NOTE: As you type your password, it is possible that nothing will be displayed in the terminal to protect your security.** |
- you should see a message like '' | - you should see a message like '' | ||
- you should now be able to ssh to stu without entering a password. try it: '' | - you should now be able to ssh to stu without entering a password. try it: '' | ||
Line 74: | Line 76: | ||
==== Tell Github to join the party ==== | ==== Tell Github to join the party ==== | ||
+ | |||
+ | **Note: For those who skipped here because of 261 reasons - Open a terminal window (specifically as specified [[# | ||
If you want to do things with GitHub, you must first have an account. If you don't have one yet, [[https:// | If you want to do things with GitHub, you must first have an account. If you don't have one yet, [[https:// | ||
- | **Note:** it's possible that your quippy username that's served you well since middle school through that very public social media posting about that awkward thing that happened back in high school might be ok to keep around, but perhaps not as your personal-professional username. So maybe don't doxx yourself by making your github username relate to all your prior online activity. 😅 | + | **Note:** it's possible that your quippy username that's served you well since middle school through that very public social media posting about that awkward thing that happened back in high school might be ok to keep around, but perhaps not as your personal-professional username. So maybe don' |
- Go to [[https:// | - Go to [[https:// | ||
Line 83: | Line 87: | ||
- Enter a name for the SSH key. | - Enter a name for the SSH key. | ||
* I suggest naming it based on the current computer you are using (try to be imaginative here. Imagine that this is but the first of many of ThatBrand™️ LapFlaps®️ that you will own in your long, laudable career). Consider something like, '' | * I suggest naming it based on the current computer you are using (try to be imaginative here. Imagine that this is but the first of many of ThatBrand™️ LapFlaps®️ that you will own in your long, laudable career). Consider something like, '' | ||
- | - leave the browser there for a sec, and go back to your terminal and show your PUBLIC key to yourself by entering '' | + | - leave the browser there for a sec, and go back to your terminal and show your PUBLIC key to yourself by entering '' |
* copy the output of that command. | * copy the output of that command. | ||
- go back to the browser and paste your PUBLIC key's contents into the " | - go back to the browser and paste your PUBLIC key's contents into the " |