GitHub CLI as an alternative to manual ssh
key generation
#910
Labels
status:duplicate
Issue or PR already exists
ssh
key generation
#910
There's been several discussions (#857, #908 and related #895) concerning how the SSH keys portion of the
git-novice
lesson has proven to be quite distracting and confusing for learners, particularly if they have only just been introduced to the command-line in the previous lesson.In September we taught the Git lesson and got learners to install
GitHub CLI
on their machines as part of the setup instructions. Whilst this does rely on users having install rights on the machine they're using, (and to a lesser extent is a tool specific to GitHub) it was very effective at simplifying the key-generation portion of the lesson. Learners could run:in their terminal, and the program asks them a series questions of how they want to connect to the remote, which requires the following details:
ssh
)Users seemed much happier with answering these questions and having the CLI do the setup-work under the hood. We also provided some suggestions for the fields like "key title" etc, to streamline the process and make troubleshooting easier. They can then link their remote repositories to their local ones in the usual manner.
This did require a slight modification on our part to the setup instructions, and also meant a large chunk of the remotes on GitHub lesson was redundant. However for the purposes of streamlining the setup so that we could get onto the collaborating portion of the lesson - which I would argue is a more important aspect of the lesson than learning about
ssh
keys - it seemed to work very well.The text was updated successfully, but these errors were encountered: