Q: How can I have CCSS servers permanently remember Git username and password so I do not have to enter it every time.
A: Git can constantly ask to provide username and password when performing simple tasks like git clone and git push/pull, etc. This can be very annoying if you are constantly performing Git operations. Below contains steps on how to permanently save Git username and password when working in CCSS servers.
- Sign in to research servers
- Open Git bash from start menu
- Copy and paste following into window. Make sure to replace your username in place of
ssh-keygen -t ed25519 -C ""
- Press enter when you’re prompted to “Enter a file in which to save the key,”
- Press enter twice when asked to enter passphrase and confirm passphrase. Steps 1-5 found from following link section “Generating a new SSH key” Generating a new SSH key
- Open a browser(Microsoft Edge, Firefox, Internet Explorer, etc)
- Sign in to your github account
- Follow instructions in following link. Adding SSH Key. When asked in first step to copy content of id_ed25519.pub, this should be located on your research account folder “U:\.ssh\id_ed25519.pub”. You may need to view hidden folders when searching. You should open this file using a notepad application and copy the contents.
- Lastly follow steps in following link to test Testing SSH connection
- Moving forward clone Git repos using SSH keys.