stottj / Command-Line

0 stars 0 forks source link

Remotely connect to another machine using `ssh` #15

Closed stottj closed 1 year ago

stottj commented 1 year ago

Summary

Learn how to securely connect your local machine to your GitHub account using SSH (Secure Shell). Understand the advantages of SSH over HTTPS for repository operations like clone, push, and pull.


Description


Learning Tasks

  1. Understanding SSH and GitHub:

    • Learn why SSH is beneficial for secure and convenient interactions with GitHub.
  2. Generating SSH Keys:

    • Use the ssh-keygen command to generate an SSH key pair.
  3. Adding SSH Key to SSH-Agent:

    • Learn how to add your generated SSH key to the SSH-agent for easy management.
  4. Associating SSH Key with GitHub:

    • Navigate through GitHub settings to add your SSH public key, enabling SSH-based interactions.
  5. Testing the Connection:

    • Perform a test to ensure the SSH connection to GitHub is properly set up.
  6. Hands-on Practice:

    • Exercise 1: Generate an SSH key pair.
    • Exercise 2: Add the generated SSH key to your SSH-agent.
    • Exercise 3: Associate the SSH public key with your GitHub account.
    • Exercise 4: Test the SSH connection to GitHub with ssh -T git@github.com.
  7. Troubleshooting:

    • Discuss common issues that might arise when setting up SSH for GitHub and learn how to resolve them.

Learning Goals


Priority

stottj commented 1 year ago

completed all exercises, received "Hi Coolnamehere! You've successfully authenticated, but GitHub does not provide shell access." when performing ex 4. Common issues are not ensuring you use the right spelling. One often seen issue is in the /.ssh file individuals are using identifyfile instead of identityfile.

tupleHunden commented 1 year ago

👍🏻