Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
student:utilities:start:keypairs:beginner [2025/09/02 15:18] – updated instructions to be more precise about copying the output of ~/.ssh/id_ed25519.pub phill4smstudent:utilities:start:keypairs:beginner [2025/10/29 16:21] (current) – [Configure your computer's ssh client] stewarmc
Line 53: Line 53:
     AddKeysToAgent yes # https://man.openbsd.org/ssh_config#AddKeysToAgent     AddKeysToAgent yes # https://man.openbsd.org/ssh_config#AddKeysToAgent
     # IdentitiesOnly yes # I am thinking maybe I should not propose this for beginners. so it's commented out now.     # IdentitiesOnly yes # I am thinking maybe I should not propose this for beginners. so it's commented out now.
-  Host stu # by specifying the host here as "stu", you can use "stu" as a shorthand for +  Host stu  # by specifying the host here as "stu", you can use "stu" as a shorthand for 
-                   # the full hostname when connecting via ssh to the server at the HostName below+            # the full hostname when connecting via ssh to the server at the HostName below
     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 ~/.ssh/name-of_non_default_private_key+            # IdentityFile ~/.ssh/name-of_non_default_private_key
     User YOUR_EID_BUT_DONT_CAPITALIZE_IT # if you specify a user, you don't have to put the     User YOUR_EID_BUT_DONT_CAPITALIZE_IT # if you specify a user, you don't have to put the
-              # user@ when connecting via ssh+            # 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 "YOUR_EID" ** ** NOTICE THE PART YOU HAVE TO REPLACE ABOVE, FOR MOST IT'S IN JUST THE LAST LINE WHERE IT SAYS "YOUR_EID" **
Line 92: Line 92:
   - click "Add SSH key".   - click "Add SSH key".
   - test that all is well by entering ''%%ssh -T git@github.com%%''   - test that all is well by entering ''%%ssh -T git@github.com%%''
 +    * you may get a message like this when first connecting to GitHub(It's okay to say yes to this):
 +  The authenticity of host 'github.com (140.82.114.4)' can't be established.
 +  ED25519 key fingerprint is SHA256:+DiY3wvvxxxfxfffF/zLDA0zPMSvHdkr4UvCOqU.
 +  This key is not known by any other names.
 +  Are you sure you want to continue connecting (yes/no/[fingerprint])? 
 +
     * you should see a message like ''%%Hi hcientist! You've successfully authenticated, but GitHub does not provide shell access.%%''     * you should see a message like ''%%Hi hcientist! You've successfully authenticated, but GitHub does not provide shell access.%%''