Setting up SSH Key in Github for Anvil

Log in to Anvil, open a Jupyter Notebook session under The Data Mine section, and fill in the appropriate time and CPU cores as shown below.

Open Jupyter Notebook
Figure 1. Open Jupyter Notebook
Open Jupyter Notebook
Figure 2. Fill in appropriate time and CPU cores

Copy and paste the following lines of code into your Jupyter Notebook.

ssh-keygen -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "My Anvil Key"
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_ed25519
chmod 644 ~/.ssh/id_ed25519.pub
Create ssh key
Figure 3. Create SSH key

If you have already created an SSH key, you will receive an error when running this code.

Then run the following command to generate the SSH key.

cat ~/.ssh/id_ed25519.pub
Generate SSH key
Figure 4. Generate SSH key

Copy this entire output line, and save it to add it to your GitHub account.

Log in to your GitHub account, if you do not have a GitHub account then create one.

Open your settings, by selecting the icon in the upper right hand corner.

Open Github setting
Figure 5. Open Github setting

Navigate to the SSH and GPG keys.

Select the New SSH Key button.

SSH and GPG keys
Figure 6. SSH and GPG keys

Name your SSH Key and paste the key from the anvil Jupyter Notebook into the key section.

Name SSH key
Figure 7. Name SSH key

Select the add SSH Key option.

Confirm your SSH Key is now listed under the SSH Key section.

Close out the Jupyter Notebook Session.

Video Resources

To help with the instructions, The Data Mine team created the videos below for the SSH key and GitHub process.

The videos follow the same set of written instructions above.

SSH Keys

GitHub on Anvil