Lab Machine Setup Instructions

Important

(1) To access Github from the lab, you will need to make sure you are logged in as follows:

  • username: .\daladmin
  • password: Business507!

(2) Remember to (create a PAT and set your git credentials). Using the Console in RStudio:

  • create your PAT using usethis::create_github_token() ,

  • store your PAT with gitcreds::gitcreds_set() ,

  • tell Git to use your verified GitHub email and display name with

    • usethis::use_git_config( user.name = "___", user.email = "___")

(3) Now go to the Terminal in RStudio and execute the remaining steps:

  • generate a key with a descriptive label: ssh-keygen -t ed25519 -C "8740-exam"

  • tell Git which key to use (execute these lines in the terminal, one at a time, and in order):

    • git config gpg.format ssh
    • git config user.signingkey ~/.ssh/id_ed25519.pub
    • git config commit.gpgsign true
  • copy the key to the clipboard: cat ~/.ssh/id_ed25519.pub | clip

  • after running that command, the key is in your Windows clipboard.

    Go to your personal Github account and navigate:

    • there is a small circle on the upper right hand side of you personal github site,
    • click on it to bring up a menu, and select settings (with a little gear symbol beside it)
    • on the setting page, select SSH and GPG Keys (with a little key symbol beside it)
    • the page that appears has a section labelled SSH Keys and a green button labelled New SSH key
    • click the button and you’ll see a Key type dropdown. Select Signing Key, and finally
    • paste the key in your clipboard into the Key textbox, and click the button Add SSH key.

(4) Test your commit in the RStudio Terminal.

  • Execute these lines, one at a time:
    • git commit –allow-empty -S -m “verify signing”
    • git log -1 –show-signature
  • You should see
    • Good “git” signature for your_verified_github_email@example.com with SSH key SHA256:…