Set Up Git in JupyterHub
0. Start a Terminal Session Inside of JupyterHub
1. Configure Git
git config --global user.name "John Doe"
git config --global user.email "[email protected]"git config --global --add url."[email protected]:".insteadOf "https://github.com/"
git config --global init.defaultBranch main2. Generate an SSH Key
ssh-keygen -t rsa -b 4096> Generating public/private rsa key pair.> Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]> Enter passphrase (empty for no passphrase): [Type a passphrase] > Enter same passphrase again: [Type passphrase again]
3. Adding a new SSH to your GitHub Account
4. Test your ssh connection on JupyterHub
5. For more information check GitHub's documentation:
Last updated
Was this helpful?
